ScalaTest regular expression test type won't work with fixtures

(Scala plugin 2017.3.11.1)

This test class cannot be selected using regular expression test type, even with class pattern .* won't select it. Another fixture based class is selected but no tests are run, the result says Empty test suite. should I report a bug or is this known limitation?

import org.scalatest.fixture

class SetSpecFixture extends fixture.FlatSpec with fixture.TestDataFixture {

"An empty Set" should "have size 0" in { td =>
info(s"test start ${td.name}")
assert(Set.empty.isEmpty)
info("test end")
}

it should "produce NoSuchElementException when head is invoked" in { td =>
info(s"test start ${td.name}")
assertThrows[NoSuchElementException] {
Set.empty.head
}
info("test end")
}
}
1 comment

Can you try also specifying a Test pattern of .*

0

Please sign in to leave a comment.