Summary

This chapter was intended to be more hands on. We looked at ScalaTest and how it fits in with other unit testing frameworks for Scala. We also looked at different styles and specs, which ScalaTest provides. Most of the examples and illustrations in this book will be using ScalaTest, so it would be worthwhile to do some more reading on ScalaTest. We also laid the foundation for the problem that we will be looking at throughout the book. We will be adding more complexities to the same problem. We will be looking to create a robust test harness by refactoring our tests at every stage.

Get Scala Test-Driven Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.