TDD is development based on the idea of the red-green-refactor cycle. Similar to what we've seen in the preceding code, we first write our code so that our test fails. Next, we write our code so that our test passes, and finally we refactor our code.
For each new feature in our apps, we repeat the same process. This is essentially what TDD is.
TDD is just a streamlined way of writing any application in any language or framework. It streamlines our work by allowing us to split our entire project into testable, clearly separated chunks of functionality.
The red-green-refactor approach is clearly visible in our output on the Project tasks page too. If we write a failing test, we'll see a red background on the word fail. It we write a passing test, we'll see a green background on the work pass.
Through the rest of this chapter, we...