
Bats-assert provides various ready-made assertions that can be used to make Bats tests simpler to understand and to debug.
For example:
* assert_success: exit status is 0. * assert_output: output contains given content. * assert_line: a specific line of output contains given content.