Command-line tool
bats
npm/bats
Checked 25 Oct 2026, 21:11 UTC · Still published on npm
Bash Automated Testing System bats bash shell test unit
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:11 UTC
Install it
Windows
npm install -g bats
macOS
npm install -g bats
Linux
npm install -g bats
Run a BATS test script and output results in the TAP (Test Anything Protocol) format
bats -t path/to/test.bats
Count test cases of a test script without running any tests
bats -c path/to/test.bats
Run BATS test cases recursively (files with a `.bats` extension)
bats -r path/to/directory
Related command-line tools
- shellspec
BDD unit testing framework for dash, bash, ksh, zsh and all POSIX shells - bats-core
Bash Automated Testing System - bash_unit
Bash unit testing enterprise edition framework for professionals - xxh
Bring your favorite shell wherever you go through the ssh - libfaketime
Report faked system time to programs - shell-use
shell-use (Windows package; no description in the winget index) llm automation cli tui powershell terminal bash… - brush-shell
Rust-implemented shell focused on POSIX and bash compatibility - bashdb
Bash shell debugger
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents