Packages

c

zio.test.junit

ZTestJUnitRunner

class ZTestJUnitRunner extends Runner with Filterable with BootstrapRuntime

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 in getDescription and then in run).

Scala.JS is not supported, as JUnit TestFramework for SBT under Scala.JS doesn't support custom runners.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ZTestJUnitRunner
  2. BootstrapRuntime
  3. Runtime
  4. Filterable
  5. Runner
  6. Describable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ZTestJUnitRunner(klass: Class[_])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def as[R1](r1: R1): Runtime[R1]
    Definition Classes
    Runtime
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. def environment: zio.ZEnv
    Definition Classes
    BootstrapRuntime → Runtime
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def filter(filter: Filter): Unit
    Definition Classes
    ZTestJUnitRunner → Filterable
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. lazy val getDescription: Description
    Definition Classes
    ZTestJUnitRunner → Runner → Describable
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def map[R1](f: (zio.ZEnv) => R1): Runtime[R1]
    Definition Classes
    Runtime
  17. def mapPlatform(f: (Platform) => Platform): Runtime[zio.ZEnv]
    Definition Classes
    Runtime
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. def platform: Platform
    Definition Classes
    BootstrapRuntime → Runtime
  22. def run(notifier: RunNotifier): Unit
    Definition Classes
    ZTestJUnitRunner → Runner
  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def testCount(): Int
    Definition Classes
    Runner
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def unsafeRun[E, A](zio: => ZIO[zio.ZEnv, E, A]): A
    Definition Classes
    Runtime
  27. final def unsafeRunAsync[E, A](zio: => ZIO[zio.ZEnv, E, A])(k: (Exit[E, A]) => Any): Unit
    Definition Classes
    Runtime
  28. final def unsafeRunAsyncCancelable[E, A](zio: => ZIO[zio.ZEnv, E, A])(k: (Exit[E, A]) => Any): (Id) => Exit[E, A]
    Definition Classes
    Runtime
  29. final def unsafeRunAsync_[E, A](zio: ZIO[zio.ZEnv, E, A]): Unit
    Definition Classes
    Runtime
  30. final def unsafeRunSync[E, A](zio: => ZIO[zio.ZEnv, E, A]): Exit[E, A]
    Definition Classes
    Runtime
  31. final def unsafeRunTask[A](task: => RIO[zio.ZEnv, A]): A
    Definition Classes
    Runtime
  32. final def unsafeRunToFuture[E <: Throwable, A](zio: ZIO[zio.ZEnv, E, A]): CancelableFuture[A]
    Definition Classes
    Runtime
  33. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  36. def withExecutor(e: Executor): Runtime[zio.ZEnv]
    Definition Classes
    Runtime
  37. def withFatal(f: (Throwable) => Boolean): Runtime[zio.ZEnv]
    Definition Classes
    Runtime
  38. def withReportFailure(f: (Cause[Any]) => Unit): Runtime[zio.ZEnv]
    Definition Classes
    Runtime
  39. def withReportFatal(f: (Throwable) => Nothing): Runtime[zio.ZEnv]
    Definition Classes
    Runtime
  40. def withTracing(t: Tracing): Runtime[zio.ZEnv]
    Definition Classes
    Runtime
  41. def withTracingConfig(config: TracingConfig): Runtime[zio.ZEnv]
    Definition Classes
    Runtime
  42. def withYieldOnStart(cond: Boolean): Runtime[zio.ZEnv]
    Definition Classes
    Runtime

Inherited from BootstrapRuntime

Inherited from Runtime[zio.ZEnv]

Inherited from Filterable

Inherited from Runner

Inherited from Describable

Inherited from AnyRef

Inherited from Any

Ungrouped