2. TDD - A
SMALL
BACKGROU
ND
It was created rediscovered by Kent
Beck in 2003, also the creator of
Extreme Programming
It was one of the first programming
techniques introduced to XP
Values of XP:
Simplicity
Communication
Feedback
Respect
Courage
3.
4. THREE
RULES OF
TDD
You are not allowed to write any
production code unless it is to
make a failing unit test pass.
You are not allowed to write any
more of a unit test than is
sufficient to fail; and compilation
failures are failures.
You are not allowed to write any
more production code than is
sufficient to pass the one failing
unit test.
12. Every single method and module in the code base is
testable by default
Tests become granular and easy to read
Each test fail for one reason and one reason
13.
14.
15.
16. TDD IS
ABOUT
PROBLEM
SOLVING
"Problem solving is the process of
breaking problems down into smaller and
more manageable parts. As the large
problem is broken down into smaller
parts, each part becomes more specific.
These individual solutions to smaller
problems are then combined to solve the
bigger problem. Problem solving is also
referred to as analysing the problem to be
solved."