Acerca de
This skill provides comprehensive guidance and standardized patterns for using Bats (Bash Automated Testing System) to perform unit and integration testing on shell scripts. It covers everything from basic exit code assertions and output verification to complex mocking of external commands and managing test fixtures. By applying these patterns, developers can implement test-driven development (TDD) for shell utilities, ensure cross-shell compatibility, and seamlessly integrate shell script validation into CI/CD pipelines, significantly reducing bugs in infrastructure and automation code.