outside-in-tdd
Use when an approved behaviour (scenario, Gherkin example, worked example, expected result) must become working software, or when a test suite is not trustworthy evidence of it — the suite is green while the real runtime behaviour is wrong or missing because fixtures or tests supply the value, or the suite already fails but that failure may not prove the missing approved outcome. Drives outside-in / double-loop TDD with an acceptance or application-boundary test first, a trustworthy RED before any implementation, domain logic emerging only from failing behaviour, one walking skeleton or delivery slice at a time. Also decides what belongs in first delivery, keeps wider HTTP/DB/infrastructure tests behind an inner failing behaviour, and keeps the RED inspection point when RED and GREEN are split across workers or subagents. Finishes with post-GREEN wiring verification and mutation/coverage gates; never commits on red.
Pinned to revision 183c8b6e860a, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/outside-in-tdd/SKILL.md
- skills/outside-in-tdd/assets/CommandHandlerTestTemplate.cs
- skills/outside-in-tdd/assets/QueryHandlerTestTemplate.cs
- skills/outside-in-tdd/references/cqrs-patterns.md
- skills/outside-in-tdd/references/test-examples.md
- skills/outside-in-tdd/references/testing-strategy.md
Every link opens the file at its source, pinned to the revision this page describes.