bunny is a lightweight test framework to write and run tests in bash
A test in bunny is a shell function whose name starts with "test_". Its return code is used to determine whether the test passed or not:
0
means "success";75
means the test was skipped;- any other integer means "error".
bunny provides its own test discoverer/runner tool (ie. bunny
). It may run either:
- every test;
- a set of test suites;
- a set of tests (potentially from different test suites).
Tests are run in parallel.
$ ./bunny test_harness.sh:test_fail
test_harness.sh:test_fail
--------------------------------------------------------------------------------
failure: This is a test
Passed in 0.008s
Ran 1 tests: 1 passed