3
单一的测试我有一系列的测试,在同一类别的所有测试相同的特征,我怎么能跳过/忽略一个一个如:如何忽略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
}
}
我没有使用registerIgnoredTest("test to be ignored")
但我必须删除in
。有更优雅的解决方案吗?像注释