Coverage Categories
Work through these categories in order for comprehensive coverage:
- HAPPY PATH — Expected inputs produce expected output
- BOUNDARY VALUES — Min, max, exactly at limit, one over limit
- EMPTY / NULL / ZERO — Each nullable input absent or zeroed
- ERROR CASES — Dependency throws, network fails, DB unavailable
- CONCURRENT / ORDERING — If function has state, test ordering
- AUTHORIZATION BOUNDARIES — Does it enforce who can call it?
- ADVERSARIAL INPUTS — SQL fragments, script tags, path traversal, unicode, emoji, null bytes, extremely long strings
Workflow
- Check off each category as you implement tests
- Document which categories don't apply and why
- Flag any gaps in coverage with rationale