May 2010
Intermediate to advanced
1272 pages
61h 18m
English
Test-Driven Development (also known as TDD or Test-Driven Design) is a programming approach in which developers create applications by first writing unit tests and then writing the actual code after the unit test passes. This particular approach helps writing better code, because you ensure that it will work via unit tests, but it is also a life philosophy so that you need to have a change of mind when approaching TDD. Basically TDD is structured into three main moments:
• Red: The developer generates a new unit test from scratch, so that it will typically fail. This is the reason why it’s called Red.
• Green: The developer focuses on writing code that makes the unit test work and pass. As you saw in the ...
Read now
Unlock full access