Dead simple testing framework for Bash with rudimentary coverage.
(Requirements)
(Requirements)
Bash v4.1
Usage
Usage
See examples / test.sh
for detailed usage. To run the tests: bash examples / test.sh
Source the framework in your test file
# test-foobar.sh # Include your source files source foobar.sh # Include the framework source critic.sh # Write tests _describe foo _test
" output should equal foo
_assert _equals
" return code should be 0 _assert _return_true
" Optional assertion message
Pass the test file as an argument API
# test-foobar.sh # Include your source files source foobar.sh # Include the framework source critic.sh # Write tests _describe foo _test
" output should equal foo
_assert _equals
" return code should be 0 _assert _return_true
" Optional assertion message
Pass the test file as an argument API
GIPHY App Key not set. Please check settings