bats
Bash Automated Testing System: a TAP (<https://testanything.org/>) compliant testing framework for Bash.
More info →Options (6)
-t, --tapbooleanRun a BATS test script and output results in the TAP (Test Anything Protocol) format
bats {{[-t|--tap]}} {{path/to/test.bats}}-c, --countbooleanCount test cases of a test script without running any tests
bats {{[-c|--count]}} {{path/to/test.bats}}-r, --recursivebooleanRun BATS test cases recursively (files with a `.bats` extension)
bats {{[-r|--recursive]}} {{path/to/directory}}-F, --formatterbooleanOutput results in a specific format
bats {{[-F|--formatter]}} {{pretty|tap|tap13|junit}} {{path/to/test.bats}}-T, --timingbooleanAdd timing information to tests
bats {{[-T|--timing]}} {{path/to/test.bats}}-j, --jobsbooleanRun specific number of jobs in parallel (requires GNU `parallel` to be installed)
bats {{[-j|--jobs]}} {{number}} {{path/to/test.bats}}Examples (6)
Run a BATS test script and output results in the TAP (Test Anything Protocol) format
bats [-t|--tap] path/to/test.batsCount test cases of a test script without running any tests
bats [-c|--count] path/to/test.batsRun BATS test cases recursively (files with a `.bats` extension)
bats [-r|--recursive] path/to/directoryOutput results in a specific format
bats [-F|--formatter] pretty|tap|tap13|junit path/to/test.batsAdd timing information to tests
bats [-T|--timing] path/to/test.batsRun specific number of jobs in parallel (requires GNU `parallel` to be installed)
bats [-j|--jobs] number path/to/test.bats