In ScalaTest 2.0 you can find both class and trait for WordSpec
. The class named WordSpec
and trait is WordSpecLike
. So just use WordSpecLike
instead of WordSpec
:
class MySpec(_system: ActorSystem) extends TestKit(_system) with ImplicitSender
with WordSpecLike with MustMatchers with BeforeAndAfterAll {
manpreet
Best Answer
2 years ago
When i run base example for testing actors:
I got error:
what am I doing wrong?