API contract test backfill
Generate a contract test for every documented endpoint in the OpenAPI spec so the spec and the implementation can never silently drift.
/goal every path in openapi.yaml has a contract test asserting its status codes and response schema — add tests for one untested endpoint per turn, run the suite, and fix either the spec or the handler when they disagree (tell me which you chose); stop when all paths are covered or after 15 turns
claude-code · codex
Implementation note
The interesting output is the disagreements: each one is a real spec-vs-implementation bug. Make sure it reports which side it corrected.
More testing loops
Watch tests while you work
A passive watchdog loop that reruns your test suite every 15 minutes and surfaces failing tests with their error output.
/loop 15m run the test suite, and if anything fails, show me the failing tests and the error output
testinglow risk
Kill flaky tests
Run your test suite repeatedly, collect every intermittent failure, and fix or quarantine flaky tests until you get five consecutive green runs.
/loop run my test suite 20 times, collect every intermittent failure, fix or quarantine the flaky ones, and don't stop until you get 5 consecutive fully-green runs
testinghigh risk
Make all tests pass
Implement remaining code and run tests repeatedly until the full suite passes.
/goal finish the implementation and make all tests pass
testingmedium risk