Production-ready Golang tests — table-driven tests, testify suites and mocks, parallel tests, fuzzing, fixtures, goroutine leak detection with goleak, snapshot testing, code coverage, integration tests, idiomatic test naming. Use when writing or reviewing Go tests, choosing a testing approach, setting up Go test CI, or debugging flaky/slow tests. For testify-specific APIs see `samber/cc-skills-golang@golang-stretchr-testify`; for measurement methodology see `samber/cc-skills-golang@golang-benchmark`.
84
82%
Does it follow best practices?
Impact
86%
1.02xAverage score across 3 eval scenarios
Passed
No known issues
synctest for deterministic timer tests
Imports testing/synctest
100%
100%
Uses synctest.Test
100%
100%
Avoids synctest.Run
100%
100%
Uses synctest.Wait
100%
100%
No real time.Sleep in tests
100%
100%
Named subtests
50%
0%
Context cancellation test
100%
100%
Multiple retry scenarios
100%
100%
External test package
100%
100%
gotests scaffolding for table-driven tests
gen-tests.sh contains gotests
100%
100%
gotests command targets strutil
100%
100%
Named subtests
100%
100%
Subtests call t.Parallel
0%
0%
Top-level tests parallel
0%
0%
All exported functions tested
100%
100%
Edge cases covered
100%
100%
External test package
0%
0%
t.ArtifactDir for persistent test output
Uses t.ArtifactDir()
100%
100%
Avoids os.TempDir / t.TempDir for artifacts
100%
100%
Logs artifact path
100%
100%
filepath.Join with ArtifactDir
100%
100%
Named subtests
0%
100%
Generate function tested
100%
100%
Save function tested
100%
100%
Edge cases
100%
100%
External test package
0%
0%
a5e0e59
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.