This chapter never seemed like the last one; it was fun. After going through several Scala programming constructs and frameworks, you learned how to ensure the validity of our programs. We knew that testing the code we write is essential, but this new TDD style of programming was a different experience. We understood what TDD actually is—a design scheme driven by specifying the behaviors at the beginning, rather than after we complete our code. We talked about why this approach is good. Then, we started with the testing tools available in Scala, and learned about ScalaTest. We wrote the specifications and then coded for the same. Finally, we also took a look at the mocking framework available in Scala named ScalaMock.
Though this is the last chapter, we can think of what more we can do to make our understanding of this language better. One of the best ways...