What problem does it solve?
Many Go codebases suffer from brittle, unmaintainable, or incomplete tests that fail in CI, hide regressions, or produce flaky results; this Skill provides patterns and guidance to make tests reliable, readable, and production-grade.
Core Features & Use Cases
- Emphasizes testing behavior over implementation and clear, bug-report style test names.
- Covers structured subtests, test helpers, t.Cleanup, t.Helper, parallel tests, table-driven patterns, and TestMain for shared setup.
- Guides HTTP handler testing with httptest, golden file testing, mocking strategies and function injection, integration tests using testcontainers, fuzz testing, and coverage analysis.
- Use when writing new tests, improving coverage, reviewing test quality, setting up CI test infrastructure, or diagnosing flaky tests.
Quick Start
Improve tests for the current Go package by adding focused subtests, reusable test helpers, golden file checks, httptest or testcontainers-based integration tests, and fuzz tests where applicable.