September 2016
Intermediate to advanced
336 pages
9h 33m
English
Test-driven development (TDD) is the practice of driving the design of code with tests. In contrast to the traditional “write code – verify code” workflow, TDD mandates that the first task in any development undertaking be to write a test. Only then can the code that will make that test pass be written. If faithfully applied, no production code will ever come into existence unless it’s preceded and accompanied by at least one test. This doesn’t “auto-magically” guarantee correctness of the code, and many people would claim that TDD has nothing to do with testing. That said, test-driven code is, by definition, testable, and after reading the opening paragraphs of Chapter 4, “Testability from a ...
Read now
Unlock full access