TestRunner

final case class TestRunner[R, E](executor: TestExecutor[R, E], reporter: () => E, bootstrap: Layer[Nothing, TestLogger & ExecutionEventSink])

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 runtime configuration, and a reporter.

trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def run(spec: Spec[R, E])(implicit trace: Trace): UIO[Summary]

Runs the spec, producing the execution results.

Runs the spec, producing the execution results.

def unsafeRun(spec: Spec[R, E])(implicit trace: Trace): Unit

An unsafe, synchronous run of the specified spec.

An unsafe, synchronous run of the specified spec.

def unsafeRunAsync(spec: Spec[R, E])(k: => Unit)(implicit trace: Trace): Unit

An unsafe, asynchronous run of the specified spec.

An unsafe, asynchronous run of the specified spec.

def unsafeRunSync(spec: Spec[R, E])(implicit trace: Trace): Exit[Nothing, Unit]

An unsafe, synchronous run of the specified spec.

An unsafe, synchronous run of the specified spec.

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

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product

Concrete fields

val runtime: Runtime[Any]