cli-testing-patterns

Pass

Audited by Gen Agent Trust Hub on Jun 29, 2026

Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTION
Full Analysis
  • [EXTERNAL_DOWNLOADS]: The setup scripts (scripts/setup-jest-testing.sh and scripts/setup-pytest-testing.sh) facilitate the installation of common and trusted testing dependencies from official package registries. Specifically, they use npm to install jest, ts-jest, and related types, and pip to install pytest, pytest-cov, and click.
  • [COMMAND_EXECUTION]: The skill includes numerous templates and helper functions designed to execute and monitor CLI processes using standard tools like child_process.execSync, child_process.spawn, and click.testing.CliRunner. These tools are utilized correctly within a testing context to validate command behavior and exit codes.
  • [SAFE]: The provided code consistently employs secure testing patterns, such as utilizing temporary directories for file system tests to ensure isolation and prevent side effects, and leveraging mocking libraries to avoid making actual network requests or modifying global state.
Audit Metadata
Risk Level
SAFE
Analyzed
Jun 29, 2026, 02:12 PM
Security Audit — agent-trust-hub — cli-testing-patterns