test-generator
TDD patterns
When & Why to Use This Skill
The Test Generator skill automates the creation of comprehensive test suites following Test-Driven Development (TDD) patterns. It streamlines the software development lifecycle by generating high-quality tests for UI components, custom hooks, server actions, and end-to-end user flows, helping developers maintain robust code reliability and achieve a target code coverage of over 95%.
Use Cases
- Component Testing: Automatically generate render and interaction tests for UI components to ensure visual and functional consistency across different states.
- Hook and State Logic: Create precise unit tests for custom hooks to validate complex state transitions, effects, and business logic isolation.
- End-to-End (E2E) Validation: Design comprehensive user flow tests that simulate real-world interactions to prevent regressions in critical application paths.
- Code Coverage Optimization: Systematically identify edge cases and generate missing test scenarios to reach and maintain a high-standard 95%+ coverage threshold.
| name | Test Generator |
|---|---|
| description | TDD patterns |
| version | 1.0.0 |
| category | testing |
Test Generation Skill
Test Types
- Component: Render + interaction
- Hook: State + effects
- Action: Server actions
- E2E: User flows
Coverage
Target: 95%+
Checklist
- All test types covered
- Edge cases tested
- 95%+ coverage