In this chapter, you will learn what Test-Driven Development (TDD) is, its importance, and you will learn how to unit test the components of our Scala-based Reactive web applications and Reactive microservices, using popular Scala testing frameworks.
I presume you are new to the TDD approach or know only some basics of TDD. So, initially, we will try to understand the TDD approach and the importance of TDD (unit testing) in developing web applications and microservices.
Unit testing means testing individual components of our application thoroughly. We should test each component separately and should test each and every line of code, to avoid most of the bugs. We have plenty of unit testing frameworks to test Java and Scala-based applications.
In this chapter, we will discuss the following:
- What is TDD and unit testing?
- The importance of the TDD...