bash-specs
A modern BDD testing framework for Bash
describe 'bash-specs'
_() {
expect 'bash-specs' to_start_with 'bash'
}
it 'starts with bash' _
Features
- test suite isolation the context in which specs are run is rebuilt for every test suite
- mocking of functions, commands and builtins mocking allows testing of functions in isolation
- reporting the test runner outputs the number of run/successful/failed specs as well as total and per-spec execution time
- human readable DSL a DSL which resembles human-written specifications