Test First Discipline

Hard discipline for behavior-changing work: write a failing test first, observe the failure, then write minimal production code; delete production code written before a failing test was observed. Distinct from test-suite-ensure (post-hoc coverage/scaffold). Referenced by PDCA execution stages. Triggers — 「测试先行」「先写失败测试」「红绿重构」「TDD 铁律」「test-first」 / test-first discipline, failing test first. Do NOT use as a name alias for tdd or test-driven-development.

fudesign2008 743e7cc 2.9 KB Updated

File contents

fudesign2008/open-skills/tree/main/skills/test-first-discipline commit 743e7cc3b5

Frequently asked questions

npx skillmds@latest add fudesign2008/test-first-discipline