final case class TestRunner[R <: Has[_], E](executor: TestExecutor[R, E], platform: Platform = Platform.makeDefault().withReportFailure(_ => ()), reporter: TestReporter[E] = DefaultTestReporter(TestAnnotationRenderer.default), bootstrap: Layer[Nothing, TestLogger with Clock] = (Console.live >>> TestLogger.fromConsole) ++ Clock.live) extends Product with Serializable
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.
- Self Type
- TestRunner[R, E]
- Alphabetic
- By Inheritance
- TestRunner
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new TestRunner(executor: TestExecutor[R, E], platform: Platform = Platform.makeDefault().withReportFailure(_ => ()), reporter: TestReporter[E] = DefaultTestReporter(TestAnnotationRenderer.default), bootstrap: Layer[Nothing, TestLogger with Clock] = (Console.live >>> TestLogger.fromConsole) ++ Clock.live)
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
- val bootstrap: Layer[Nothing, TestLogger with Clock]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val executor: TestExecutor[R, E]
- def finalize(): Unit
- Attributes
- protected[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[E]
- def run(spec: ZSpec[R, E]): URIO[TestLogger with Clock, ExecutedSpec[E]]
Runs the spec, producing the execution results.
- lazy val runtime: Runtime[Unit]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def unsafeRun(spec: ZSpec[R, E]): ExecutedSpec[E]
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.
- def unsafeRunSync(spec: ZSpec[R, E]): Exit[Nothing, ExecutedSpec[E]]
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()
- def withPlatform(f: (Platform) => Platform): TestRunner[R, E]
Creates a copy of this runner replacing the platform
- def withReporter[E1 >: E](reporter: TestReporter[E1]): TestRunner[R, E]
Creates a copy of this runner replacing the reporter.