final case class TestRunner[R, E](executor: TestExecutor[R, E], runtimeConfig: RuntimeConfig = RuntimeConfig.makeDefault(), reporter: TestReporter[E] = ..., bootstrap: Layer[Nothing, TestLogger with Clock] = ...) 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 runtime configuration, and a reporter.
- Self Type
- TestRunner[R, E]
- Alphabetic
- By Inheritance
- TestRunner
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new TestRunner(executor: TestExecutor[R, E], runtimeConfig: RuntimeConfig = RuntimeConfig.makeDefault(), reporter: TestReporter[E] = ..., bootstrap: Layer[Nothing, TestLogger with Clock] = ...)
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( ... ) @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[_]
- 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 reporter: TestReporter[E]
-
def
run(spec: ZSpec[R, E])(implicit trace: ZTraceElement): URIO[TestLogger with Clock, ExecutedSpec[E]]
Runs the spec, producing the execution results.
- lazy val runtime: Runtime[Any]
- val runtimeConfig: RuntimeConfig
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
unsafeRun(spec: ZSpec[R, E])(implicit trace: ZTraceElement): ExecutedSpec[E]
An unsafe, synchronous run of the specified spec.
-
def
unsafeRunAsync(spec: ZSpec[R, E])(k: (ExecutedSpec[E]) ⇒ Unit)(implicit trace: ZTraceElement): Unit
An unsafe, asynchronous run of the specified spec.
-
def
unsafeRunSync(spec: ZSpec[R, E])(implicit trace: ZTraceElement): Exit[Nothing, ExecutedSpec[E]]
An unsafe, synchronous run of the specified spec.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
withReporter[E1 >: E](reporter: TestReporter[E1]): TestRunner[R, E]
Creates a copy of this runner replacing the reporter.
-
def
withRuntimeConfig(f: (RuntimeConfig) ⇒ RuntimeConfig): TestRunner[R, E]
Creates a copy of this runner replacing the runtime configuration.
Deprecated Value Members
-
def
withPlatform(f: (Platform) ⇒ Platform): TestRunner[R, E]
Creates a copy of this runner replacing the platform
Creates a copy of this runner replacing the platform
- Annotations
- @deprecated
- Deprecated
(Since version 2.0.0) use withRuntimeConfig