igx*_*igx 3 scala akka testkit akka-testkit
我在同一个类中进行了一系列测试,都测试了相同的功能,如何跳过/忽略一个,例如:
class FooTest(_system: ActorSystem) extends TestKit(_system)
with ImplicitSender
with WordSpecLike
with Matchers
{
implicit val timeout = Timeout(10.seconds)
def this() = this(ActorSystem("TESTActorSystem"))
"Service " should {
"test something" in {
OK
}
}
"test to be ignored " in{
"Not implemented" //ignore this test
}
}
Run Code Online (Sandbox Code Playgroud)
我确实使用了,registerIgnoredTest("test to be ignored")但我必须删除in.有更优雅的解决方案吗?像注释一样