Test Generator
Use when adding test coverage for new or changed code.
When to activate
- New module or API route without tests
- Bug fix that needs a regression test
- User requests test coverage
Procedure
- Read the implementation; list inputs, outputs, and edge cases.
- Test behavior, not implementation details.
- One assertion theme per test; descriptive test names.
- Mock external I/O; use real logic for pure functions.
- Skip tests that only assert mocks or constants.
Output format
- Test file path
- Cases: happy path, edge cases, error paths
- Any fixtures or setup needed