What problem does it solve?
This Skill automates the creation and verification of tests that match a project's existing test framework and style, ensuring tests cover happy paths, edge cases, and error paths and that generated tests run green before delivery.
Core Features & Use Cases
- Framework detection: Inspect project configs and nearby test files to determine runner, assertion style, file naming, and mocking patterns.
- Structured test generation: Produce one test file per source file with organized describe/it blocks covering happy path, edge cases, and error paths while minimizing mocks.
- Execution and iteration: Run the generated tests, repair failing assertions up to three iterations, and mark unrecoverable tests as skipped with a documented reason.
- Use Case: Add comprehensive, repository-conformant tests for auth middleware, utility modules, or exported libraries without changing source code.
Quick Start
Use test-gen to generate and verify tests for the module at src/auth/session.ts.