What problem does it solve?
This Skill turns Go testing guidance into a practical workflow for writing reliable, maintainable, and production-ready tests. It helps you avoid flaky tests, hidden race conditions, weak assertions, and coverage that does not reflect real behavior.
Core Features & Use Cases
- Table-driven unit tests: Structure cases with named subtests, parallel execution, and clear assertions.
- Integration and concurrency testing: Separate integration suites with build tags, detect goroutine leaks, and verify race-prone code safely.
- Behavior-focused testing: Use black-box package_test layouts, httptest for handlers, Example functions for documentation, and fuzz tests for critical functions.
- Performance and quality workflows: Add benchmarks with allocation tracking, mock dependencies at the consumer boundary, and apply testify suites where organized setup and teardown are needed.
- Use Case: A Go team can apply this Skill to review an existing test suite, generate new tests for handlers or services, and enforce reliable CI-ready practices across unit, integration, fuzz, and benchmark coverage.
Quick Start
Ask for a Go test plan or test implementation for your package, and specify whether you need unit tests, integration tests, concurrency checks, fuzzing, benchmarks, or a review of existing tests.