Test-Driven Development

Write a failing test before the code that passes it — Red → Green → Refactor — treating tests as proof rather than “seems right” (see pattern-test-driven-development). It carries a rich rubric: the test pyramid (~80% unit / 15% integration / 5% E2E), a Small/Medium/Large test-size model, DAMP over DRY in tests, and the Beyoncé Rule (if you liked it you should have put a test on it). For bugs it mandates the Prove-It Pattern — a failing test that reproduces the bug first, then the fix.

It is the third framework in the TDD cluster, converging with Matt Pocock’s mp-tdd. It implements stage-implement.

See Also