Acerca de
This skill provides comprehensive patterns and best practices for writing production-grade unit tests for shell scripts using Bats. It covers fundamental test structures, advanced assertion logic, sophisticated mocking and stubbing of system commands, and seamless integration into CI/CD pipelines. By following these patterns, developers can implement Test-Driven Development (TDD) for shell utilities, ensuring they behave correctly across different environments and shell dialects while catching regressions early in the development lifecycle.