class
ZTestJUnitRunner extends Runner with Filterable
Instance Constructors
-
new
ZTestJUnitRunner(klass: Class[_])
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
-
-
def
filter(filter: Filter): Unit
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
lazy val
getDescription: Description
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
testCount(): Int
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Custom JUnit 4 runner for ZIO Test Specs.
Any instance of zio.test.ZIOSpecAbstract, that is a class (JUnit won't run objects), if annotated with
@RunWith(classOf[ZTestJUnitRunner])
can be run by IDEs and build tools that support JUnit.Your spec can also extend JUnitRunnableSpec to inherit the annotation. In order to expose the structure of the test to JUnit (and the external tools),
getDescription
has to execute Suite level effects. This means that these effects will be executed twice (first ingetDescription
and then inrun
).Scala.JS is not supported, as JUnit TestFramework for SBT under Scala.JS doesn't support custom runners.