case class TestRunner[L, -T, E, S](executor: TestExecutor[L, T, E, S], platform: Platform = PlatformLive.makeDefault().withReportFailure(_ => ()), reporter: TestReporter[L, E, S] = DefaultTestReporter()) extends Product with Serializable
A TestRunner[R, E, L, S] encapsulates all the logic necessary to run specs
that require an environment R and may fail with an error E or succeed
with an S, using labels of type L. Test runners require a test executor,
a platform, and a reporter.
- Self Type
- TestRunner[L, T, E, S]
- Alphabetic
- By Inheritance
- TestRunner
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new TestRunner(executor: TestExecutor[L, T, E, S], platform: Platform = PlatformLive.makeDefault().withReportFailure(_ => ()), reporter: TestReporter[L, E, S] = DefaultTestReporter())
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final val defaultTestLogger: TestLogger
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val executor: TestExecutor[L, T, E, S]
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val platform: Platform
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val reporter: TestReporter[L, E, S]
- final def run(spec: Spec[L, T]): URIO[TestLogger with Clock, ExecutedSpec[L, E, S]]
Runs the spec, producing the execution results.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def unsafeRun(spec: Spec[L, T], testLogger: TestLogger = defaultTestLogger, clock: Clock = Clock.Live): ExecutedSpec[L, E, S]
An unsafe, synchronous run of the specified spec.
- final def unsafeRunAsync(spec: Spec[L, T], testLogger: TestLogger = defaultTestLogger, clock: Clock = Clock.Live)(k: (ExecutedSpec[L, E, S]) => Unit): Unit
An unsafe, asynchronous run of the specified spec.
- final def unsafeRunSync(spec: Spec[L, T], testLogger: TestLogger = defaultTestLogger, clock: Clock = Clock.Live): Exit[Nothing, ExecutedSpec[L, E, S]]
An unsafe, synchronous run of the specified spec.
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def withReporter[L1 >: L, E1 >: E, S1 >: S](reporter: TestReporter[L1, E1, S1]): TestRunner[L, T, E, S]
Creates a copy of this runner replacing the reporter.