What problem does it solve?
Go projects often struggle to adopt test-driven development, leading to delayed feedback, flaky tests, and unclear design. This skill provides a structured approach to write tests first, drive API design with table-driven patterns, and maintain high test coverage.
Core Features & Use Cases
- Table-driven testing templates: standardized patterns for Go tests that cover multiple inputs and edge cases.
- RED-GREEN-REFACTOR guidance: a repeatable cycle to implement code with minimal changes while keeping tests green.
- Coverage targets & quality checks: enforce 80%+ coverage and race condition detection in CI.
- Use Case: a new Go service starts with failing tests, then incrementally implements minimal code to pass while keeping tests green.
Quick Start
Write a failing table-driven test, then implement the minimal code to pass, and repeat for new cases.