I would like to be able to use JUnit rules, such as TemporaryFolder or other TestRule , which we have already developed internally. What is the best method to do this? I know JUnitSuite, but doesn't seem to notice the @Rule annotation. In any case, I would like to use a different set of ScalaTest.
So my questions are:
- Are JUnit rules supported according to ScalaTest requirements?
- If not, is there a library that could use it with the Junit
TestRule ? - If not, how to use the JUnit
TestRule in Scala tests? - Or is there a more suitable Scala-specific approach for implementing what the
TemporaryFolder or, for example, Stefan Birkner System Rules provide?
Here is what I tried using JUnitSuite :
class MyTest extends JUnitSuite {
scala unit-testing junit scalatest
Mifeet
source share