O'Reilly logo

Akka Concurrency by Derek Wyatt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6

Akka Testing

No code is valid unless you can demonstrate it to be, and this is no less true of code written in Akka. Unfortunately, Akka programs, just like all other programs, will do exactly what you tell them to do rather than what you want them to do. So, we test!

You can test Akka with any testing framework, but we'll use ScalaTest. This is just a personal preference, so you can use whatever you like.

6.1 Making changes to sbt

Along with ScalaTest, we'll include Akka's TestKit module, which gives us a load of nifty tools to help us test what we've written. We won't be covering all of the test variants here, but rest assured that Akka has you covered for everything from surgically targeted unit testing to simulating multi-node testing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required