What problem does it solve?
This Skill provides actionable Go testing guidelines to write, review, and improve tests, helping teams achieve meaningful coverage and robust test suites without reliance on external tools.
Core Features & Use Cases
- Test Organisation: Recommend adjacent, per-function test files and proper package usage.
- Table-Driven Testing: Promote map-based table-driven tests with descriptive names.
- Concurrency Testing Guidance: Advise patterns for deterministic concurrent tests and proper use of t.Parallel().
- Assertions & Comparisons: Suggest appropriate assertion strategies and diffing approaches.
- Mocks vs Integration: Recommend when to mock and when to use real dependencies with integration tests.
- Coverage & Fixtures: Guidance on test fixtures, golden files, and meaningful coverage targets.
Quick Start
Apply current Go testing best practices to this repository's tests. Example prompt: "Review this Go project and apply Table-Driven, Concurrency, and Coverage best practices."