bats-testing-patterns
SolidBats test patterns for shell scripts and CLI tools (`.bats` files, `run`, `setup`/`teardown`, PATH-stub mocking, CI wiring). Use when adding tests to a bash/shell script, hardening its error paths, or wiring `bats-core` into CI.
Install
Quality Score: 80/100
Skill Content
Details
- Author
- uwuclxdy
- Repository
- uwuclxdy/agenticat
- Created
- 5 months ago
- Last Updated
- today
- Language
- TypeScript
- License
- MIT
Bundled in these plugins
Similar Skills
Semantically similar based on skill content — not just same category
test-shell
BATS shell script testing. Use when writing or running shell script tests. Covers setup/teardown, assertions, mocking, helper patterns, and coverage with kcov.
tool-bat
Use bat for syntax-highlighted file viewing with line numbers and git context. Trigger when readable terminal code inspection is needed.
add-executable-smoke-tests-for-shell-scripts-and-clis-before-ref
Use Bats-core when an agent needs to turn fragile shell scripts or command-line workflows into something it can verify repeatedly after edits. The agent writes focused Bash tests for success paths, failure paths, and output contracts, then runs them locally or in CI before a refactor, release, or incident fix goes out.