Testing Go code is more than just checking for errors. Use table-driven tests to cover many cases with less code. Find goroutine leaks with goleak. Keep tests fast and reliable with parallel execution.
This guide helps you write new tests, review pull requests, or debug flaky tests. Follow best practices like build tags for integration tests and mocking interfaces instead of concrete types.
Treat tests as executable specifications. This approach builds confidence in your code and makes it easier to maintain over time.
Global
mkdir -p ~/.claude/skills/golang-testingProject
mkdir -p .claude/skills/golang-testingSource Repository
Grill Memattpocock/skills
Stress-test your plan with relentless questions until we both understand
Tddmattpocock/skills
Write one test at a time then code to make it pass
Test Driven Developmentobra/superpowers
Write a failing test first then code just enough to pass
Qamattpocock/skills
Turn bug reports into GitHub issues through natural conversation without technical fuss
Migrate To Shoehornmattpocock/skills
Replace unsafe as assertions with type-safe partial test data easily
Webapp Testinganthropics/skills
Test your local web apps quickly with Playwright automation and screenshots
Playwright Best Practicescurrents-dev/playwright-best-practices-skill
Master Playwright testing with best practices for reliable and fast tests
Google Agents Cli Evalgoogle/agents-cli
Run evaluations on your AI agent, find failures, and improve its quality step by step