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
。有更優雅的解決方案嗎?像註釋