Package

zio.test

junit

Permalink

package junit

Visibility
  1. Public
  2. All

Type Members

  1. abstract class JUnitRunnableSpec extends ZIOSpecDefault

    Permalink
    Annotations
    @RunWith()
  2. class ZTestJUnitRunner extends Runner with Filterable

    Permalink

    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.

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

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

Ungrouped