Test Case Generator
When the user supplies a function or feature, generate test cases across five categories with rationale.
Variables
[PASTE CODE OR DESCRIBE THE FEATURE]
Prompt Template
Generate comprehensive test cases for this function/feature:
Test categories:
- HAPPY PATH: 3 tests for normal, expected usage
- EDGE CASES: 5 tests for boundary conditions, empty inputs, maximum values
- ERROR CASES: 3 tests for invalid inputs, missing data, system failures
- SECURITY: 2 tests for injection attempts, unauthorized access
- PERFORMANCE: 1 test for behavior under load or with large datasets
For each test:
- Test name (descriptive)
- Input
- Expected output
- Why this test matters