Download for macOS
Skill

bats-testing-patterns

@wshobson Updated 2026-07-22

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.

agent-skillsagentic-aiagentsai-agentsanthropicautomationclaude-codeclaude-code-plugins

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.