
from ordinary-claude-skills217
Guidance and patterns for writing production-grade shell tests using Bats (Bash Automated Testing System) for CI/CD and TDD workflows.
Practical patterns and examples for testing shell scripts with Bats. Covers fundamentals, installation, test file structure, common assertion patterns (exit codes, output, file assertions), setup/teardown, fixtures, mocking/stubbing, CI integration, and advanced patterns for robust, portable shell testing.
Use this skill when you need to write unit or integration tests for shell scripts, introduce test-driven development for command-line utilities, validate behavior across different shells, or integrate shell tests into CI/CD pipelines. It's valuable when you need fixtures, setup/teardown patterns, or consistent TAP-compatible test output.
Best used by agents that can reason about shell, CI, and test automation (Copilot/Codex-style agents, Claude Code).
Pure documentation skill covering Bats (Bash Automated Testing System) patterns and best practices. No bundled scripts — the skill is a comprehensive reference guide with code examples for assertions, mocking, fixtures, CI integration, and shell compatibility testing. Well-structured content with clear triggers and practical examples, but lacks executable tooling or output contracts.
Clean skill with no security concerns. Well-written documentation but monolithic — everything lives in one SKILL.md with no scripts or references directory. The source path 'skills_categorized/mobile/bats-testing-patterns' is odd since Bats testing has nothing to do with mobile development.