Test Generator
Overview
Write tests the project already understands (pytest, vitest, jest, playwright). Prefer failing test → fix → green.
Workflow
- Detect the test runner and layout (
package.json,pyproject.toml, existing tests). - Choose level:
- unit for pure logic
- API/integration for handlers
- E2E for critical user paths
- Add a focused test next to siblings; mirror naming/fixtures.
- Run the smallest command that exercises the new test.
- Iterate until green; avoid flaky sleeps - use explicit waits.
Rules
- Do not snapshot huge blobs without need.
- Keep tests deterministic; inject clocks/network.
- For UI E2E, reuse
playwright-browserguidance.