Skip to content
This repository has been archived by the owner on Sep 22, 2021. It is now read-only.

1.0

Compare
Choose a tag to compare
@ckstettler ckstettler released this 12 Mar 13:03
9510913

Release Notes

This initial release of shellmock can be a useful comparison to the bats tool. It provides some ability to mock UNIX commands so that you can perform more comprehensive tests of utilities that might undesirably alter system state making tests difficult to repeat.

It has some constraints in that all commands being executed would need to be coming from the PATH vs hardcoded paths.

Features

  • Define expectations for any commands being used that allows you to control the expected behavior of the script.
  • Verify each mocked function to confirm complete commands that were executed.
  • Test cleanup functions
  • Mechanisms to debug an individual test