About Test Generator
A skill for generating unit and end-to-end tests from code and user flows. It covers expected behavior, edge cases, failures, mocks, selectors, assertions, and test data.
Key features
- 01Analyze function inputs and outputs
- 02Generate happy-path tests
- 03Cover edge and error cases
- 04Create dependency mocks
- 05Draft E2E flows and assertions
Use cases
- 01Build unit tests for a function
- 02Test boundary conditions and failures
- 03Draft tests for critical user flows
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ jmsktm/ claude-settings --skill test-generatorAfter installing, type/test-generatorin Claude Code to confirm it loaded.
Details
From the project READMETest Generator
Generate comprehensive test suites that catch bugs before production. From unit tests to E2E scenarios, create tests that give you confidence to ship.
Core Workflows
Workflow 1: Unit Test Generation
- Analyze Code - Understand function inputs/outputs
- Happy Path - Test expected behavior
- Edge Cases - Test boundary conditions
- Error Cases - Test failure scenarios
- Mocking - Create mocks for dependencies
Workflow 2: E2E Test Generation
- User Flows - Identify critical paths
- Test Scenarios - Write step-by-step tests
- Selectors - Define robust element selectors
- Assertions - Verify expected outcomes
- Data Setup - Handle test data
Quick Reference
| Action | Command |
|---|---|
| Generate unit tests | "Generate tests for [function]" |
| E2E tests | "Create E2E tests for [flow]" |
| Coverage report | "Analyze test coverage" |
Comments
Markdown supported