Install any skill in seconds. Free to start, no credit card required.
Get Started Free →asymmetric-al/bats-testing-patterns
Master Bash Automated Testing System (Bats) for comprehensive shell script testing.
Passed 21 of 22 test cases with the skill, and 18 of 22 without it.
and 1 more in the full report
3 fixed18 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 3 test cases the skill fixed. Same model, same prompt, with and without the skill.
I am writing a test that changes a file's permissions to `000` to test permission denied errors. To ensure subsequent cleanup or teardown can delete the file, what step must I include before ending the test?
| Checked | Without skill | With skill |
|---|---|---|
| restores write permissions using chmod 644 | Missed | Passed |
The instructions your model reads when the skill loads.
Comprehensive guidance for writing comprehensive unit tests for shell scripts using Bats (Bash Automated Testing System), including test patterns, fixtures, and best practices for production-grade shell testing.
Bats (Bash Automated Testing System) is a TAP (Test Anything Protocol) compliant testing framework for shell scripts that provides:
# macOS with Homebrew
brew install bats-core
# Ubuntu/Debian
git clone https://github.com/bats-core/bats-core.git
cd bats-core
./install.sh /usr/local
# From npm (Node.js)
npm install --global bats
test cases passed, vs 18 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.