TTD Test Driven Development


creation date: 2025-01-17 13:04
modification date: 2025-01-17 13:04


https://blog.cleancoder.com/uncle-bob/2014/12/17/TheCyclesOfTDD.html

The Three Laws of TDD.

A few years later this fine granularity was codified into three rules: the so-called Three Laws of TDD.

1. You must write a failing test before you write any production code.

2. You must not write more of a test than is sufficient to fail, or fail to compile.

3. You must not write more production code than is sufficient to make the currently failing test pass.