testing
SKILL.md
Testing Standards
Philosophy
Tests are verification infrastructure, not checkboxes. They protect against regressions, document expected behavior, and surface real issues for human evaluation.
Comprehensive, not exhaustive. Cover meaningful scenarios without combinatorial explosion.
Pre-Flight Checklist
Before writing any test, answer:
- What is the contract? (inputs → outputs, side effects, errors)
- What are the boundaries? (empty, nil, zero, max, negative)
- What can go wrong? (every error return path)
- What state does it depend on? (filesystem, env vars, time)
- Is there concurrency? (goroutines, shared state)