← All repos

bats-assert

Common assertions for Bats

Browse cluster: WebAssembly Specification and Proposals
181commits
19contributors
1languages

Tech stack & purpose

bats-assert is a helper library providing common assertions for Bats, a testing framework for bash. The library supplies assertion functions that test conditions and return success or failure status while outputting formatted diagnostic information on failure. It depends on bats-support for output formatting and offers a range of assertion functions including assert and refute for evaluating expressions, assert_equal and assert_not_equal for comparing values, assert_success and assert_failure for checking exit status, and various functions for testing command output, specific output lines, regular expressions, and standard error streams with support for literal, partial, and regular expression matching modes.

Community & reference links

Languages

Shell
100.0%

Contributors