bats-testing-patterns
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.
Install
git clone https://github.com/wshobson/agents /tmp/agents && ln -s /tmp/agents/plugins/shell-scripting/skills/bats-testing-patterns ~/.claude/skills/bats-testing-patterns
From README
Bats Testing Patterns 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. When to Use This Skill Writing unit tests for shell scripts Implementing test-driven development (TDD) for scripts Setting up automated testing in CI/CD pipelines Testing edge cases and error conditions Validating behavior across different shell environments Building maintainable test suites for scripts Creating fixtures for complex test scenarios Testing multiple shell dialects (bash, sh, dash) Detailed patterns and worked examples Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.
More from this repo
python-packaging
Used to create distributable Python packages with proper project structure, setup.py/pyproject.toml, and publishing to...
ai-debt-detector
Use after generating code, after accepting AI suggestions, or when reviewing AI-written modules.
market-sizing-analysis
Calculate TAM/SAM/SOM for market opportunities using top-down, bottom-up, and value theory methodologies.
