Small, fast command line utility for mocking command line calls. Acts like middleware between shell and your script.
It's your script's responsibility to wrap commands with MockShell.
MockShell -p -m mocks.json -c 'command'
-p -- Should enable profiling for this call
-m mocks.json -- Well formatted JSON array of mocks to match (see example.json)
-c 'command' -- The command you may or may not be mocking
- Make sure you have slack installed
- Checkout repository
slack install
to install it globally.
Included in the repository is a sample mock.json file which simply maps a specific echo statement to a new output.
- Regex based matching
- Testing