원클릭으로
writing-go-tests
Applies current Go testing best practices. Use when writing or modifying Go test files or advising on Go testing strategies.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Applies current Go testing best practices. Use when writing or modifying Go test files or advising on Go testing strategies.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | writing-go-tests |
| description | Applies current Go testing best practices. Use when writing or modifying Go test files or advising on Go testing strategies. |
This skill provides actionable testing guidelines. For detailed implementation patterns, code examples, rationale, and production system references, consult go-testing-best-practices.md.
Always apply these current best practices:
*_test.go namingpackage foo_test) for integration testing and exampleshandler_auth_test.go, handler_validation_test.go)testing/synctest for deterministic concurrent testing (Go 1.24+)t.Parallel() first in test functionscmp.Diff() from google/go-cmp for complex comparisonsgo test -cover and go tool cover -html for analysistestdata directory for test fixtures (automatically ignored by Go toolchain)t.Helper() for accurate error reportingt.Cleanup() for resource cleanup (superior to defer in tests)B.Loop() method as the preferred pattern (prevents compiler optimisations)benchstat for statistical analysis-benchmem for memory profilingTest*, Benchmark*, Fuzz*, Example* (capital letter after prefix)got and want for actual vs expected valuesLoad go-testing-best-practices.md when you need:
The detailed guide contains full context, examples with explanations, and production-proven patterns. This SKILL.md provides the actionable rules to apply.
Focus on meaningful tests that validate behaviour rather than implementation. Pragmatic excellence over theoretical perfection.