Test-Driven Development Illustrated
Agile methods help development teams create good quality code and ensure this with early testing. Test-driven development (TDD) is the preferred approach to accomplish this. First, you write the tests; then, you write the code so the tests pass. Sound simple? It is—when done correctly. And this is often where the trouble starts. Thorsten Werle and Carsten Czeczine explain the basic steps of TDD. You’ll see how to write tests for non-existing code using the compiler as your first testing tool. You’ll learn that TDD does not start with unit testing but with an integration test. Carsten and Thorsten explain the significance of “mocking” and unit testing in TDD. Finally, you’ll experience the combination of TDD and pair programming by playing the “TDD Game.” To make TDD more fun and vivid, Thorsten and Carsten illustrate it by programming a LEGO Mindstorms robot. Come and learn how to use TDD in a fun, interesting, and effective way.