同じクラスに一連のテストがあり、すべて同じ機能をテストしています。たとえば、1 つの機能をスキップ/無視するにはどうすればよいですか。
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
ます。よりエレガントなソリューションはありますか? コメントのように