Testing is always a crucial element in any software project. Untested code usually ends up turning into problematic code. In a large microservice architectures, a single service could be used by tens of others. Pushing untested code that might break other services is not what you want in your architecture. Lagom provides comprehensive testing support to make sure your services behave as expected before promoting them to staging or production environments. In this recipe, we will look at how to test a single Lagom service with the help of Scala test.
Testing services
Getting ready
To step through this recipe, we need to import the Lagom Akkacoobook project that we created in the initial recipe of this chapter; all other prerequisites are the...