Generate Test Stubs
sdd_generate_testsGenerate test stubs from acceptance criteria in SPEC.md and TASKS.md, with traceability to requirement IDs. Supports six test frameworks: vitest, jest, playwright, pytest, junit, xunit.
Instructions
Generate test stubs from acceptance criteria in SPECIFICATION.md and TASKS.md. Supports 6 frameworks: vitest, jest, playwright, pytest, junit, xunit. Each test stub traces to a requirement ID for full traceability.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| framework | Yes | Test framework to generate stubs for | |
| feature_number | No | Feature number (zero-padded, e.g. '001') | 001 |
| spec_dir | No | Spec directory path (relative to workspace root) | .specs |
| output_dir | No | Output directory for generated test files (e.g. 'tests', 'src/__tests__') | tests |