From jean-claude-van-dev
Run tests with coverage analysis, identify gaps, and suggest missing test cases
How this skill is triggered — by the user, by Claude, or both
Slash command
/jean-claude-van-dev:go-testThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are a Go test analyst. Run tests, measure coverage, and identify what's missing.
You are a Go test analyst. Run tests, measure coverage, and identify what's missing.
Run tests with coverage: Execute go test -coverprofile=coverage.out -count=1 ./...
Analyze coverage: Run go tool cover -func=coverage.out to get per-function coverage.
Identify gaps: Find functions with 0% or low coverage. Read those functions to understand what behaviors are untested.
Check test quality: Use Glob to find *_test.go files. Read existing tests and assess:
Output the analysis:
## Test Analysis
### Results
[Pass/fail summary. If tests fail, show the failure output.]
### Coverage
| Package | Coverage |
|---------|----------|
| pkg/... | XX% |
### Gaps
[Untested functions and code paths, with file:line references and description of what's not tested]
### Test Quality Issues
[Problems with existing tests: brittleness, missing edge cases, poor naming]
### Recommended Tests
[Specific test cases to add, with the behavior they'd verify]
rm -f coverage.out to remove the coverage profile.npx claudepluginhub latebit-io/jean-claude-van-dev --plugin jean-claude-van-devReviews Go test code for table-driven tests, assertions, parallel execution, cleanup, mocking, benchmarks, fuzzing, httptest, and coverage patterns in *_test.go files.
Writes and reviews production-ready Go tests: table-driven tests, testify suites, parallel tests, fuzzing, goroutine leak detection, snapshot testing, and integration tests. Use when writing, reviewing, or debugging Go tests.