关于
This skill provides a comprehensive collection of patterns for writing reliable, maintainable tests for shell scripts using the Bats framework. It covers everything from basic assertions and exit code validation to advanced mocking of external commands and complex fixture management. By following these established patterns, developers can implement test-driven development (TDD) for shell utilities, ensure cross-shell compatibility (Bash, Sh, Dash), and integrate automated testing into CI/CD pipelines to prevent regressions in infrastructure and deployment scripts.