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 {{[-t|--tap]}} {{path/to/test.bats}}

bats {{[-c|--count]}} {{path/to/test.bats}}

bats {{[-r|--recursive]}} {{path/to/directory}}

bats {{[-F|--formatter]}} {{pretty|tap|tap13|junit}} {{path/to/test.bats}}

bats {{[-T|--timing]}} {{path/to/test.bats}}

bats {{[-j|--jobs]}} {{number}} {{path/to/test.bats}}