What problem does it solve?
Go developers often ship code with weak or inconsistent test coverage, making regressions hard to catch and improving code quality slower than necessary.
Core Features & Use Cases
- TDD RED-GREEN-REFACTOR: Guides a disciplined workflow from failing tests to minimal passing implementation and safe refactors.
- Table-driven testing: Establishes a standard pattern for covering many input/output cases concisely, including error scenarios.
- Subtests, helpers, and testdata: Improves test organization, reuse, and maintainability using
t.Run, t.Helper(), t.Cleanup(), and golden files.
- Mocks, benchmarks, and fuzzing: Supports interface-based mocking, performance measurement, and Go 1.18+ fuzz tests.
- CI-ready commands and best practices: Provides practical commands for running tests, coverage, race detection, fuzzing, and enforcing coverage thresholds.
Quick Start
Activate this skill when you are adding or refactoring Go code and want a TDD-driven plan to produce comprehensive, maintainable tests.