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.shandscripts/setup-pytest-testing.sh) facilitate the installation of common and trusted testing dependencies from official package registries. Specifically, they usenpmto installjest,ts-jest, and related types, andpipto installpytest,pytest-cov, andclick. - [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, andclick.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