zio.test.junit

Type members

Classlikes

@RunWith(scala.Predef.classOf[zio.test.junit.ZTestJUnitRunner])
abstract class JUnitRunnableSpec extends ZIOSpecDefault
class ZTestJUnitRunner(klass: Class[_]) extends Runner with Filterable

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.

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.