Install any skill in seconds. Free to start, no credit card required.
Get Started Free →microck/bats-testing-patterns
Master Bash Automated Testing System (Bats) for comprehensive shell script testing.
Passed 20 of 22 test cases with the skill, and 19 of 22 without it.
1 fixed19 passed either way2 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
A test case the skill fixed. Same model, same prompt, with and without the skill.
I am writing a test for a command that outputs exact multiline text. Should I use regex string matching or can `$output` be directly checked against line breaks?
| Checked | Without skill | With skill |
|---|---|---|
| Asserts output directly against a literal multiline string. | 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 19 / 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.