...

/

TDD Guarantees Good Code

TDD Guarantees Good Code

Address the misconception that TDD guarantees good code and explore its implications.

Just as there are often overly pessimistic objections to TDD, here is an opposite view:

TDD guarantees good code.

As TDD is a process, and it claims to improve code, it’s quite reasonable to assume that using TDD is all we need to guarantee good code. Unfortunately, that’s not at all correct. TDD helps developers write good code and it helps as feedback to show us where we have made mistakes in design and logic. It cannot guarantee good code, however.

Understan

...