package junit
Type Members
- abstract class JUnitRunnableSpec extends ZIOSpecDefault
- Annotations
- @RunWith()
- class ZTestJUnitRunner 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.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),getDescriptionhas to execute Suite level effects. This means that these effects will be executed twice (first ingetDescriptionand then inrun).
Scala.JS is not supported, as JUnit TestFramework for SBT under Scala.JS doesn't support custom runners.