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`.
86
82%
Does it follow best practices?
Impact
94%
1.42xAverage score across 3 eval scenarios
Passed
No known issues
Deterministic goroutine timer tests with testing/synctest
synctest import
100%
100%
synctest.Test used
100%
100%
synctest.Wait used
100%
100%
No synctest.Run
100%
100%
No real sleep in tests
100%
100%
Delay fires test
100%
100%
Cancel prevents firing
100%
100%
Context cancel test
100%
100%
Named subtests
55%
33%
testWithTimeout helper with caller attribution for async tests
t.Helper() called
100%
100%
runtime.Callers used
71%
100%
Panic on timeout
0%
100%
Goroutine + time.After
66%
100%
t.Cleanup signal
0%
100%
Helper reused
75%
100%
TestPipeline_Process naming
50%
100%
Named subtests
0%
0%
ProcessAsync error channel
100%
100%
t.ArtifactDir() for inspectable test output
t.ArtifactDir() used
0%
100%
No os.MkdirTemp
0%
100%
No os.TempDir
100%
100%
No hardcoded paths
100%
100%
t.Logf artifact path
100%
100%
Method naming convention
0%
100%
Named subtests
100%
100%
File content verified
100%
100%
APPROACH.md explains ArtifactDir
0%
100%
8c7e016
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.