TestRunner

final case class TestRunner[R <: Has[_], E](executor: TestExecutor[R, E], platform: Platform, reporter: () => E, bootstrap: Layer[Nothing, TestLogger & Clock])

A TestRunner[R, E] encapsulates all the logic necessary to run specs that require an environment R and may fail with an error E. Test runners require a test executor, a platform, and a reporter.

trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def run(spec: ZSpec[R, E]): URIO[TestLogger & Clock, ExecutedSpec[E]]

Runs the spec, producing the execution results.

Runs the spec, producing the execution results.

def unsafeRun(spec: ZSpec[R, E]): ExecutedSpec[E]

An unsafe, synchronous run of the specified spec.

An unsafe, synchronous run of the specified spec.

def unsafeRunAsync(spec: ZSpec[R, E])(k: ExecutedSpec[E] => Unit): Unit

An unsafe, asynchronous run of the specified spec.

An unsafe, asynchronous run of the specified spec.

def unsafeRunSync(spec: ZSpec[R, E]): Exit[Nothing, ExecutedSpec[E]]

An unsafe, synchronous run of the specified spec.

An unsafe, synchronous run of the specified spec.

Creates a copy of this runner replacing the platform

Creates a copy of this runner replacing the platform

def withReporter[E1 >: E](reporter: () => E1): TestRunner[R, E]

Creates a copy of this runner replacing the reporter.

Creates a copy of this runner replacing the reporter.

Inherited methods

Inherited from:
Product

Concrete fields

lazy val runtime: Runtime[Unit]