Tooluck logoTooluck
SKILL.md

bats-testing-patterns

Agent skill fromrmyndharis/antigravity-skills

Master Bash Automated Testing System (Bats) for comprehensive shell script testing. Use when writing tests for shell scripts, CI/CD pipelines, or requiring test-driven development of shell utilities.

How to install bats-testing-patterns

install bats-testing-patterns
# install the antigravity-skills pack with the skills CLI
npx skills add rmyndharis/antigravity-skills

# or add only this skill to Claude Code: copy the folder

skills/bats-testing-patterns/

# into

~/.claude/skills/bats-testing-patterns/ (all projects)

.claude/skills/bats-testing-patterns/ (one project)

skills/bats-testing-patterns/SKILL.md

MITFull file
1# Bats Testing Patterns
2
3Comprehensive 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.
4
5## Use this skill when
6
7- Writing unit tests for shell scripts
8- Implementing TDD for scripts
9- Setting up automated testing in CI/CD pipelines
10- Testing edge cases and error conditions
11- Validating behavior across shell environments
12
13## Do not use this skill when
14
15- The project does not use shell scripts
16- You need integration tests beyond shell behavior
17- The goal is only linting or formatting
18
19## Instructions
20
21- Confirm shell dialects and supported environments.
22- Set up a test structure with helpers and fixtures.
23- Write tests for exit codes, output, and side effects.
24- Add setup/teardown and run tests in CI.
25- If detailed examples are required, open `resources/implementation-playbook.md`.
26
27## Resources
28
29- `resources/implementation-playbook.md` for detailed patterns and examples.

Excerpt shown under the repository's MIT license.

More skills in antigravity-skills

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates