ZTestJUnitRunner

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.

class Runner
class Object
trait Matchable
class Any

Value members

Concrete methods

override def filter(filter: Filter): Unit
Definition Classes
override def run(notifier: RunNotifier): Unit
Definition Classes

Inherited methods

def testCount(): Int
Inherited from:
Runner

Concrete fields