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|tap13|junit}} {{path/to/test.bats}}

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

bats --jobs {{number}} {{path/to/test.bats}}