What problem does it solve?
It eliminates brittle, implementation-coupled test suites by generating tier-A contract tests that validate API wire contracts and outbound integration request/response shapes.
Core Features & Use Cases
- Portable contract coverage: Produces HTTP request/response assertions per exposed endpoint and per outbound integration boundary to survive backend stack changes.
- Deterministic, spec-driven generation: Uses behavior-spec inputs to derive method/path schemas, scenario expectations, edge-case triggers, and error envelope shapes.
- Harness-aligned output: Detects the target test framework from the test harness evidence and emits idiomatic tests for it, including harness discovery extensions when needed.
- Baseline-green gate: Ensures generated tests pass against the current codebase before capturing proposals to prevent incorrect extraction.
- Cited traceability: Writes a companion cited-specs YAML mapping generated tests back to scenario IDs for downstream aggregation.
Quick Start
Ask the test-engineer agent to run generate-contract-tests for a feature whose behavior-spec contains exposed inbound endpoints or outbound integration behaviors, using the provided test harness and evidence paths.