go-test

Installation
SKILL.md

Go Testing Skill

This skill guides writing effective Go tests and objectively measuring their quality using mutation testing and coverage analysis.

Core Principle

Tests exist to catch bugs, not to hit coverage numbers. Use mutation testing to prove your tests actually detect real defects.

LLM Testing Failure Modes

Before writing tests, be aware of these common mistakes:

  1. Happy path tunnel vision: Test failure cases, not just success
  2. Testing implementation, not behavior: Tests should survive refactors
  3. Weak assertions: Don't just check err == nil — verify the result
  4. Mock addiction: Prefer real implementations over mocks when feasible
  5. No concurrency testing: Always run with -race, test concurrent access
  6. No adversarial thinking: Ask "what input would break this?"
Installs
1
GitHub Stars
64
First Seen
Apr 16, 2026