bats-testing-patterns

Pass

Audited by Gen Agent Trust Hub on Jul 14, 2026

Risk Level: SAFE
Full Analysis
  • [SAFE]: The skill serves as a documentation resource for shell script testing patterns using bats-core. It promotes the use of built-in temporary directories ($BATS_TEST_TMPDIR) to prevent state leakage and ensure clean test environments.
  • [COMMAND_EXECUTION]: Code examples demonstrate creating and making files executable (chmod +x) within a restricted test directory for mocking external dependencies (e.g., docker, curl). This is a standard, documented procedure for unit testing shell scripts.
  • [EXTERNAL_DOWNLOADS]: The CI wiring section demonstrates installing the bats framework via npm install --global bats. This is a well-known method for setting up the tool in GitHub Actions and other CI environments.
Audit Metadata
Risk Level
SAFE
Analyzed
Jul 14, 2026, 06:31 PM