bats Command Examples

Bash Automated Testing System: a TAP (https://testanything.org/) compliant testing framework for Bash. More information: https://bats-core.readthedocs.io/en/stable/usage.html.

bats --tap {{path/to/test.bats}}

bats --count {{path/to/test.bats}}

bats --recursive {{path/to/directory}}

bats --formatter {{pretty|tap|junit}} {{path/to/test.bats}}