Provides a comprehensive guide for writing production-ready Golang tests. Covers table-driven tests, test suites with testify, mocks, unit tests, integration tests, benchmarks, code coverage, parallel tests, fuzzing, fixtures, goroutine leak detection with goleak, snapshot testing, memory leaks, CI with GitHub Actions, and idiomatic naming conventions. Use this whenever writing tests, asking about testing patterns or setting up CI for Go projects. Essential for ANY test-related conversation in Go.
85
82%
Does it follow best practices?
Impact
92%
1.95xAverage score across 3 eval scenarios
Passed
No known issues
gotests scaffold usage
gotests used
66%
100%
Method naming convention
0%
100%
name field in table tests
100%
100%
t.Run used
100%
100%
t.Parallel in subtests
0%
100%
Top-level t.Parallel
0%
100%
assert.New(t) pattern
0%
0%
Edge cases covered
100%
100%
External test package
100%
0%
testing/synctest deterministic time
synctest.Run used
0%
100%
No real time.Sleep
100%
100%
Correct import
0%
100%
Time-window expiry tested
100%
100%
Early-trigger suppression
100%
100%
Stop cancels callback
100%
100%
goleak used
0%
100%
table-driven with name
50%
50%
External test package
0%
100%
No flakiness patterns
100%
100%
testWithTimeout helper pattern
testWithTimeout exists
40%
100%
t.Helper() first statement
100%
100%
Cleanup channel pattern
0%
100%
Panic on timeout
0%
100%
Caller location in panic
0%
100%
Helper applied to multiple tests
100%
100%
goleak for goroutine cleanup
0%
100%
table-driven with name field
0%
100%
t.Parallel in independent tests
0%
100%
No order dependence
100%
100%
e9761db
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.