What problem does it solve?
Go testing in real-world projects often lacks standardized patterns, leading to flaky tests and inconsistent coverage. This Skill codifies idiomatic Go testing practices to help you write reliable, maintainable tests with proven patterns.
Core Features & Use Cases
- Table-driven tests with t.Run subtests for clear, data-driven coverage
- Use of t.Helper() in test helpers to improve failure diagnostics
- Manual mocking patterns for interfaces to enable isolated testing
- Benchmarks using modern patterns and race-detection guidance
- Guidance for integrating synctest patterns for deterministic concurrency (Go 1.25+)
- Trigger-based discovery via go test, _test.go, and common testing keywords
- Applicable across Go projects aiming to improve test quality, CI reliability, and documentation of behavior
Quick Start
Run go test in your module to start applying table-driven tests, subtests, and basic benchmarks.