March 2015
Intermediate to advanced
816 pages
36h 46m
English
Test-driven development (TDD) is an approach to program development in which you interleave testing and code development (Beck 2002; Jeffries and Melnik 2007). You develop the code incrementally, along with a set of tests for that increment. You don’t start working on the next increment until the code that you have developed passes all of its tests. Test-driven development was introduced as part of the XP agile development method. However, it has now gained mainstream acceptance and may be used in both agile and plan-based processes.
The fundamental TDD process is shown in Figure 8.9. The steps in the process are as follows:
Test-driven development
Read now
Unlock full access