What problem does it solve?
This Skill addresses the challenge of insufficient test coverage in codebases by automatically identifying, generating, and applying missing tests, ensuring code quality and reliability.
Core Features & Use Cases
- Test Coverage Analysis: Analyzes code at both file and method levels to identify gaps in testing (covered, partial, missing files; L1/L2 untested/undertested methods).
- Automated Test Generation: Generates missing test cases based on the code's public interface and existing test patterns.
- Direct Test Application: Places generated tests directly into the appropriate
code/*/tests/ directory.
- Test Execution: Integrates with
npm run test --workspaces to run generated and existing tests.
- Use Case: A developer can use this skill to quickly bring a new feature up to a desired test coverage standard, reducing manual testing effort and improving confidence in code changes.
Quick Start
Use the code-to-tests skill to analyze and generate missing tests for the current codebase.