Download for MacApple silicon, macOS 14+
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

With your agent

Install OMGSkills skill "wshobson/agents:bats-testing-patterns" into this agent's normal skills directory: call the OMGSkills MCP get_install_plan tool for your agent and run the script it returns (it installs only the pinned commit and verifies SKILL.md), and stop if MCP or the pin is unavailable. Do not overwrite or change existing skills without asking me.

Manual command

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.