Test-Driven Development Explained
Test-Driven Development (TDD) is a set of practices on top of unit tests. They alter the way you design your code and you write unit tests. Basically, it is a different approach to writing code than the classical technique of writing code and then testing it after.
It is a cliché to say that TDD is not just doing testing first, but rather than me telling you otherwise, you will decide yourself after going through Chapters 5 and 6.
In this chapter, we will:
- Go through TDD pillars
- Implement a software feature following the TDD style
- Converse the FAQs and criticism around the subject
- Discuss having TDD with Sintegration testing
By the end of the chapter, you will be able to use TDD to write basic coding tasks and understand the topics around the subject and where TDD fits in the software ecosystem.