ZTestJUnitRunner

zio.test.junit.ZTestJUnitRunner
class ZTestJUnitRunner(klass: Class[_]) extends Runner, 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.

Attributes

Source
ZTestJUnitRunner.scala
Graph
Supertypes
trait Filterable
class Runner
trait Describable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def filter(filter: Filter): Unit

Attributes

Definition Classes
Source
ZTestJUnitRunner.scala
override def run(notifier: RunNotifier): Unit

Attributes

Definition Classes
Source
ZTestJUnitRunner.scala

Inherited methods

def testCount(): Int

Attributes

Inherited from:
Runner

Concrete fields

Attributes

Source
ZTestJUnitRunner.scala