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.
Add this skill
npx mdskills install sickn33/bats-testing-patternsClear scope and use cases but instructions are too high-level for agent execution
1---2name: bats-testing-patterns3description: 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.4---56# Bats Testing Patterns78Comprehensive 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.910## Use this skill when1112- Writing unit tests for shell scripts13- Implementing TDD for scripts14- Setting up automated testing in CI/CD pipelines15- Testing edge cases and error conditions16- Validating behavior across shell environments1718## Do not use this skill when1920- The project does not use shell scripts21- You need integration tests beyond shell behavior22- The goal is only linting or formatting2324## Instructions2526- Confirm shell dialects and supported environments.27- Set up a test structure with helpers and fixtures.28- Write tests for exit codes, output, and side effects.29- Add setup/teardown and run tests in CI.30- If detailed examples are required, open `resources/implementation-playbook.md`.3132## Resources3334- `resources/implementation-playbook.md` for detailed patterns and examples.35
Full transparency — inspect the skill content before installing.