Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ronjaponja/shell-vcr
https://github.com/ronjaponja/shell-vcr
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ronjaponja/shell-vcr
- Owner: RonjaPonja
- Created: 2017-09-24T17:06:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-24T19:52:54.000Z (over 7 years ago)
- Last Synced: 2024-11-19T03:05:45.860Z (2 months ago)
- Language: Python
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Shell-VCR
Shell-VCR is a tool to intercept, record and replay shell commands.
This can be used to convert integration tests into unit tests, by
intercepting shell commands and replaying their prerecorded outputs,
kept in git next to you tests.Create a bin folder with a symlink for each binary you want to
intercept and point it to this binary.Record executables by running your commands like this:
`PATH=./vcr-bin/:$PATH VCR_MODE=RECORD VCR_REMOTE_HOST=someremote ./test.py`After that you can run your tests like this:
`PATH=./vcr-bin/:$PATH VCR_MODE=REPLAY ./test.py`TODO:
- Since the VCRs output is meant to be parsed by other programs,
error handling and reporting is tricky.
- We should create command specific lock files during recording
to make this thread / process save.