Go Testing Mistakes

Guides the agent to avoid common Go testing mistakes when writing or reviewing test code. Covers test categorization (build tags, env vars, short mode), race detection, test execution modes (parallel, shuffle), table-driven tests, avoiding sleeps in tests, handling the time API deterministically, using httptest/iotest utility packages, writing accurate benchmarks, and leveraging Go testing features (coverage, external test packages, utility functions, setup/teardown). Use when writing, reviewing, or refactoring Go tests, benchmarks, or test helpers, or when setting up CI test pipelines for Go projects.

v0lka 90415af 12.9 KB Updated

File contents

v0lka/skills/tree/main/development/idiomatic-go/go-testing-mistakes commit 90415af9f9

Frequently asked questions

npx skillmds@latest add v0lka/go-testing-mistakes