bats-testing-patterns
Pass
Audited by Gen Agent Trust Hub on Sep 26, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONDYNAMIC_EXECUTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The skill provides instructions for installing the
bats-coreframework viagit clonefrom its official GitHub repository and via thenpmregistry. These references target the official resources of a well-known open-source testing tool. - [DYNAMIC_EXECUTION]: Demonstrates a pattern for command stubbing that involves generating small executable shell scripts in temporary directories during test execution. This is a standard technique for unit testing shell scripts to isolate them from external dependencies.
- [COMMAND_EXECUTION]: Illustrates the use of common shell utilities for environment management, such as
mktempfor creating isolated workspaces andrm -rffor cleaning up temporary files in test teardown phases.
Audit Metadata