go-test-review

Solid

Review Go test code for quality including table-driven tests, t.Helper usage, assertion completeness, boundary cases, benchmarks, fuzz tests, and coverage targets. Trigger when PR contains _test.go files, test helpers, httptest usage, testing.B, testing.F, or testdata directories. Use for test-quality focused review.

AI & Automation 27 stars 5 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 85/100

Stars 20%
48
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Go Test Review ## Purpose Audit Go test code for quality and coverage effectiveness. Reviews HOW tests are written — not the production code being tested. This skill is **conditionally triggered** — only when `_test.go` files are in the diff. If a PR has only implementation code with no tests, this skill may suggest "missing test coverage" but does not deep-dive. This skill does NOT cover: security, concurrency, performance, quality, error handling, or logic of production code — those belong to sibling vertical skills. ## When To Use - PR contains `_test.go` files - Code uses `httptest`, `testing.B`, `testing.F` - Code includes `testdata/` directory changes - Need to evaluate test coverage ## When NOT To Use - Reviewing production code security/performance/logic → use corresponding sibling skill - Only implementation code changed, no tests → may note "missing tests" but no deep review ## Mandatory Gates ### 1) Go Version Gate Read `go.mod`. Key version gates: | Feature | Minimum Go | Caveat | |---------|-----------|--------| | `t.Setenv` | 1.17 | Cannot combine with `t.Parallel()` — panics on every Go version (process-wide env) | | Fuzz testing (`testing.F`) | 1.18 | | | Loop variable fix | 1.22 | Affects `t.Parallel()` + loop variable capture | | `t.Chdir` | 1.24 | Added 1.24; like `t.Setenv`, panics if combined with `t.Parallel()` | ### 2) Anti-Example Suppression Gate MUST quote specific evidence. Category match alone insufficient. Embedded anti-examples: - **...

Details

Author
johnqtcg
Repository
johnqtcg/awesome-skills
Created
4 months ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category