Instance Constructors
-
new
ZTestJUnitRunner(klass: Class[_])
Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
def
as[R1](r1: R1): Runtime[R1]
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
val
environment: zio.ZEnv
-
-
-
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
unsafeRun[E, A](zio: ⇒ ZIO[zio.ZEnv, E, A]): A
-
final
def
unsafeRunAsync[E, A](zio: ⇒ ZIO[zio.ZEnv, E, A])(k: (Exit[E, A]) ⇒ Any): Unit
-
final
def
unsafeRunAsync_[E, A](zio: ZIO[zio.ZEnv, E, A]): Unit
-
final
def
unsafeRunSync[E, A](zio: ⇒ ZIO[zio.ZEnv, E, A]): Exit[E, A]
-
final
def
unsafeRunTask[A](task: ⇒ ZIO[zio.ZEnv, Throwable, A]): A
-
final
def
unsafeRunToFuture[E <: Throwable, A](zio: ZIO[zio.ZEnv, E, A]): CancelableFuture[A]
-
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.AbstractRunnableSpec, 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.