What problem does it solve?
This Skill helps you write and fix Go tests that are deterministic, readable, and useful when they fail, instead of flaky tests that hide regressions or waste time debugging.
Core Features & Use Cases
- Table-driven testing: Structure cases with named subtests, parallel execution, and clear got/want failure messages.
- Test hygiene and reliability: Use helpers, cleanup, consumer-owned fakes, leak detection, and deterministic time patterns to keep tests isolated and stable.
- HTTP, fuzzing, and benchmarks: Test handlers with httptest, seed fuzz corpora, and write modern benchmarks with Go 1.24+ b.Loop when applicable.
- Use case: You are adding coverage for a flaky handler with timers and goroutines; this Skill guides you to isolate dependencies, remove sleeps, verify leaks, and make failures self-explanatory.
Quick Start
Apply the go-testing skill to this Go test file and rewrite it so the cases are table-driven, the failure messages are explicit, and any time- or goroutine-based behavior is made deterministic.