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-core framework via git clone from its official GitHub repository and via the npm registry. 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 mktemp for creating isolated workspaces and rm -rf for cleaning up temporary files in test teardown phases.
Audit Metadata
Risk Level
SAFE
Analyzed
Sep 26, 2026, 11:53 AM