go-cli-testing
Installation
SKILL.md
Go CLI Testing
Test observable behavior at the narrowest boundary that proves it. Isolate every mutable resource and reserve executable tests for process-level semantics.
Core Workflow
- Inventory success, invalid, boundary, dependency-failure, and cancellation behavior.
- Map each case to a pure, command, adapter, integration, or binary test.
- Inject arguments, streams, configuration, clocks, and effectful dependencies.
- Isolate files, environment, servers, repositories, ports, and subprocesses.
- Assert stdout, stderr, exit behavior, and errors according to the public contract.
- Gate live or platform-specific tests and make their changes reversible.
- Run standard, race, tagged, and relevant platform checks.
- Execute every supported build profile and smoke-test final artifacts.
- Interpret coverage gaps without treating execution as behavioral proof.