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 {