The three rules of TDD
2 min readMar 6, 2021
According to Uncle bob, there are three rules that should be followed to get the best results from TDD. They are:
- You should write only enough tests that are sufficient to fail
- You should only write enough code that is sufficient to pass the written failing code
- Write production code only to pass the failing tests.