case class TestRunner[R, L, -T, E, S](executor: TestExecutor[R, L, T, E, S], platform: Platform = ..., 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[R, L, T, E, S]
- Alphabetic
- By Inheritance
- TestRunner
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new TestRunner(executor: TestExecutor[R, L, T, E, S], platform: Platform = ..., 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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- final val defaultTestLogger: TestLogger
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val executor: TestExecutor[R, L, T, E, S]
-
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 platform: Platform
- val reporter: TestReporter[L, E, S]
-
final
def
run(spec: Spec[R, E, 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[R, E, 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[R, E, 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[R, E, 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( ... )
-
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()
-
final
def
withReporter[L1 >: L, E1 >: E, S1 >: S](reporter: TestReporter[L1, E1, S1]): TestRunner[R, L, T, E, S]
Creates a copy of this runner replacing the reporter.