You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bats is a TAP-compliant testing framework for Bash
3.2 or above. It provides a simple way to verify that the UNIX programs you
write behave as expected.
A Bats test file is a Bash script with special syntax for defining test cases.
Under the hood, each test case is just a function with a description.
Bats is most useful when testing software written in Bash, but you can use it to
test any UNIX program.
Test cases consist of standard shell commands. Bats makes use of Bash's
errexit (set -e) option when running test cases. If every command in the
test case exits with a 0 status code (success), the test passes. In this way,
each line is an assertion of truth.
There was an initial call for maintainers for the original Bats repository, but write access to it could not be obtained. With development activity stalled, this fork allowed ongoing maintenance and forward progress for Bats.
Tuesday, September 19, 2017: This was forked from Bats at
commit 0360811. It was created via git clone --bare and git push --mirror.
As of Thursday, April 29, 2021: the original Bats has been
archived by the owner and is now read-only.
This bats-core repo is now the community-maintained Bats project.
Copyright
The Bats Logo was created by Vukory (Github) and sponsored by SethFalco. If you want to use our logo, have a look at our guidelines.