Generate Property-Based Tests
sdd_generate_pbtGenerate property-based tests from EARS requirements by extracting invariants, round-trip properties, and idempotence checks to discover edge cases using random input generation.
Instructions
Extracts universal properties (invariants, round-trips, idempotence) from EARS requirements and generates property-based tests using fast-check (TypeScript) or hypothesis (Python). Unlike example-based tests, PBT uses random input generation to discover edge cases that manual tests miss.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| framework | Yes | Property-based testing framework: fast-check (TypeScript/JS) or hypothesis (Python) | |
| 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 PBT files | tests |