Generate Test Stubs
sdd_generate_testsGenerate test stubs with full requirement traceability from acceptance criteria in specification and task files, supporting six major test frameworks.
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 |
|---|---|---|---|
| spec_dir | No | Spec directory path (relative to workspace root) | .specs |
| framework | Yes | Test framework to generate stubs for | |
| output_dir | No | Output directory for generated test files (e.g. 'tests', 'src/__tests__') | tests |
| feature_number | No | Feature number (zero-padded, e.g. '001') | 001 |