Test Generation
Goal
Add useful tests without encoding bad assumptions.
Best Tools
- Codex
- Claude Code
- Continue
Recommended Prompt
Follow existing test conventions.
Add focused tests for the affected behavior only.
Step-by-Step
- inspect nearby tests
- add focused cases
- run the narrowest test command
CLI Examples
cn -p "add unit tests for the affected path using local conventions"
IDE Examples
- use editor chat to inspect local test patterns before generating code
Review Checklist
- assertions are meaningful
- edge cases covered
Common Mistakes
- low-signal snapshots
Team Standard
Prefer explicit assertions over broad snapshots.