Take the 2-minute tour ×

I am struggling to find any ScalaTest samples written using FunSuite testing an akka actor.

I appreciate if somebody could provide a simple scalatest example testing a simple akka actor.

share|improve this question

1 Answer 1

up vote 4 down vote accepted

Akka is very well documented. You can find the documentation here. Here is the link to the Testing Actor Systems (Scala) chapter, which comes with an example.

Note: The full example uses a ScalaTest WordSpec. For a FunSuite example, change WordSpec to FunSuite and write tests with test("test name") rather than WordSpec's should/in style. All else will be identical to the example shown.

share|improve this answer
Thanks for your comment, I'm after ScalaTest sample and not Spec sample. –  Ali May 12 '12 at 12:39
The linked example is in ScalaTest, is it not? I see imports to org.scalatest... –  Dylan May 12 '12 at 13:41
There is even an explanatory video from Scala Days 2012 skillsmatter.com/podcast/scala/actors-fsm-akka. –  Matthew Farwell May 24 '12 at 11:53

Your Answer


