object TestAspect extends TestAspectCompanionVersionSpecific with TimeoutVariants
- Alphabetic
- By Inheritance
- TestAspect
- TimeoutVariants
- TestAspectCompanionVersionSpecific
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- abstract class PerTest[+LowerR, -UpperR, +LowerE, -UpperE] extends TestAspect[LowerR, UpperR, LowerE, UpperE]
- final class ProvideSomeServiceBuilder[R0] extends AnyVal
- final class ProvideSomeServiceBuilderShared[R0] extends AnyVal
- type WithOut[+LowerEnv, -UpperEnv, +LowerErr, -UpperErr, OutEnv0[Err], OutErr0[Env]] = TestAspect[LowerEnv, UpperEnv, LowerErr, UpperErr] { ... /* 2 definitions in type refinement */ }
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
-
def
after[R0, E0](effect: ZIO[R0, E0, Any]): WithOut[Nothing, R0, E0, Any, [Env]Env, [Err]Err]
Constructs an aspect that runs the specified effect after every test.
-
def
afterAll[R0](effect: ZIO[R0, Nothing, Any]): WithOut[Nothing, R0, Nothing, Any, [Env]Env, [Err]Err]
Constructs an aspect that runs the specified effect after all tests.
-
def
annotate[V](key: TestAnnotation[V], value: V): WithOut[Nothing, Any, Nothing, Any, [Env]Env, [Err]Err]
Annotates tests with the specified test annotation.
-
def
around[R0, E0](before: ZIO[R0, E0, Any], after: ZIO[R0, Nothing, Any]): WithOut[Nothing, R0, E0, Any, [Env]Env, [Err]Err]
A less powerful variant of
aroundwhere the result ofbeforeis not required by after. -
def
aroundAll[R0, E0](before: ZIO[R0, E0, Any], after: ZIO[R0, Nothing, Any]): WithOut[Nothing, R0, E0, Any, [Env]Env, [Err]Err]
A less powerful variant of
aroundAllwhere the result ofbeforeis not required byafter. -
def
aroundAllWith[R0, E0, A0](before: ZIO[R0, E0, A0])(after: (A0) ⇒ ZIO[R0, Nothing, Any]): WithOut[Nothing, R0, E0, Any, [Env]Env, [Err]Err]
Constructs an aspect that evaluates all tests between two effects,
beforeandafter, where the result ofbeforecan be used inafter. -
def
aroundTest[R0, E0](managed: ZManaged[R0, TestFailure[E0], (TestSuccess) ⇒ ZIO[R0, TestFailure[E0], TestSuccess]]): WithOut[Nothing, R0, E0, Any, [Env]Env, [Err]Err]
Constructs an aspect that evaluates every test inside the context of the managed function.
-
def
aroundWith[R0, E0, A0](before: ZIO[R0, E0, A0])(after: (A0) ⇒ ZIO[R0, Nothing, Any]): WithOut[Nothing, R0, E0, Any, [Env]Env, [Err]Err]
Constructs an aspect that evaluates every test between two effects,
beforeandafter, where the result ofbeforecan be used inafter. -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
aspect[R0, E0](f: (ZIO[R0, TestFailure[E0], TestSuccess]) ⇒ ZIO[R0, TestFailure[E0], TestSuccess]): WithOut[R0, R0, E0, E0, [Env]Env, [Err]Err]
Constructs a simple monomorphic aspect that only works with the specified environment and error type.
-
def
before[R0, E0](effect: ZIO[R0, E0, Any]): WithOut[Nothing, R0, E0, Any, [Env]Env, [Err]Err]
Constructs an aspect that runs the specified effect before every test.
-
def
beforeAll[R0, E0](effect: ZIO[R0, E0, Any]): WithOut[Nothing, R0, E0, Any, [Env]Env, [Err]Err]
Constructs an aspect that runs the specified effect a single time before all tests.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
val
debug: WithOut[Nothing, Has[TestConsole], Nothing, Any, [Env]Env, [Err]Err]
An aspect that runs each test with the
TestConsoleinstance in the environment set to debug mode so that console output is rendered to standard output in addition to being written to the output buffer. -
def
diagnose(duration: zio.Duration): WithOut[Nothing, Has[Live] with Has[Annotations], Nothing, Any, [Env]Env, [Err]Err]
An aspect that runs each test on a separate fiber and prints a fiber dump if the test fails or has not terminated within the specified duration.
-
def
dotty[LowerR, UpperR, LowerE, UpperE](that: WithOut[LowerR, UpperR, LowerE, UpperE, [Env]Env, [Err]Err]): WithOut[LowerR, UpperR, LowerE, UpperE, [Env]Env, [Err]Err]
An aspect that applies the specified aspect on Dotty.
-
val
dottyOnly: WithOut[Nothing, Has[Annotations], Nothing, Any, [Env]Env, [Err]Err]
An aspect that only runs tests on Dotty.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
eventually: WithOut[Nothing, ZTestEnv, Nothing, Any, [Env]Env, [Err]Err]
An aspect that retries a test until success, without limit.
-
val
exceptDotty: WithOut[Nothing, Has[Annotations], Nothing, Any, [Env]Env, [Err]Err]
An aspect that runs tests on all versions except Dotty.
-
val
exceptJS: WithOut[Nothing, Has[Annotations], Nothing, Any, [Env]Env, [Err]Err]
An aspect that runs tests on all platforms except ScalaJS.
-
val
exceptJVM: WithOut[Nothing, Has[Annotations], Nothing, Any, [Env]Env, [Err]Err]
An aspect that runs tests on all platforms except the JVM.
-
val
exceptNative: WithOut[Nothing, Has[Annotations], Nothing, Any, [Env]Env, [Err]Err]
An aspect that runs tests on all platforms except ScalaNative.
-
val
exceptScala2: WithOut[Nothing, Has[Annotations], Nothing, Any, [Env]Env, [Err]Err]
An aspect that runs tests on all versions except Scala 2.
-
val
exceptScala211: WithOut[Nothing, Has[Annotations], Nothing, Any, [Env]Env, [Err]Err]
An aspect that runs tests on all versions except Scala 2.11.
-
val
exceptScala212: WithOut[Nothing, Has[Annotations], Nothing, Any, [Env]Env, [Err]Err]
An aspect that runs tests on all versions except Scala 2.12.
-
val
exceptScala213: WithOut[Nothing, Has[Annotations], Nothing, Any, [Env]Env, [Err]Err]
An aspect that runs tests on all versions except Scala 2.13.
-
def
executionStrategy(exec: ExecutionStrategy): WithOut[Nothing, Any, Nothing, Any, [Env]Env, [Err]Err]
An aspect that sets suites to the specified execution strategy, but only if their current strategy is inherited (undefined).
-
def
failing[E0](assertion: (TestFailure[E0]) ⇒ Boolean): WithOut[Nothing, Any, Nothing, E0, [Env]Env, [Err]Err]
An aspect that makes a test that failed for the specified failure pass.
An aspect that makes a test that failed for the specified failure pass. Note that the test will fail for other failures and also if it passes correctly.
-
val
failing: WithOut[Nothing, Any, Nothing, Any, [Env]Env, [Err]Err]
An aspect that makes a test that failed for any reason pass.
An aspect that makes a test that failed for any reason pass. Note that if the test passes this aspect will make it fail.
-
lazy val
fibers: WithOut[Nothing, Has[Annotations], Nothing, Any, [Env]Env, [Err]Err]
An aspect that records the state of fibers spawned by the current test in TestAnnotation.fibers.
An aspect that records the state of fibers spawned by the current test in TestAnnotation.fibers. Applied by default in DefaultRunnableSpec but not in RunnableSpec. This aspect is required for the proper functioning of
TestClock.adjust. -
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
flaky(n: Int): WithOut[Nothing, ZTestEnv with Has[Annotations], Nothing, Any, [Env]Env, [Err]Err]
An aspect that retries a test until success, with the specified limit, for use with flaky tests.
-
val
flaky: WithOut[Nothing, Has[Annotations] with Has[TestConfig] with ZTestEnv, Nothing, Any, [Env]Env, [Err]Err]
An aspect that retries a test until success, with a default limit, for use with flaky tests.
-
val
forked: WithOut[Nothing, Any, Nothing, Any, [Env]Env, [Err]Err]
An aspect that runs each test on its own separate fiber.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
val
identity: WithOut[Nothing, Any, Nothing, Any, [Env]Env, [Err]Err]
An aspect that returns the tests unchanged
-
def
ifEnv(env: String)(assertion: (String) ⇒ Boolean): WithOut[Nothing, Has[Live] with Has[Annotations], Nothing, Any, [Env]Env, [Err]Err]
An aspect that only runs a test if the specified environment variable satisfies the specified assertion.
-
def
ifEnvSet(env: String): WithOut[Nothing, Has[Live] with Has[Annotations], Nothing, Any, [Env]Env, [Err]Err]
As aspect that only runs a test if the specified environment variable is set.
-
def
ifProp(prop: String)(assertion: (String) ⇒ Boolean): WithOut[Nothing, Has[Live] with Has[Annotations], Nothing, Any, [Env]Env, [Err]Err]
An aspect that only runs a test if the specified Java property satisfies the specified assertion.
-
def
ifPropSet(prop: String): WithOut[Nothing, Has[Live] with Has[Annotations], Nothing, Any, [Env]Env, [Err]Err]
As aspect that only runs a test if the specified Java property is set.
-
val
ignore: WithOut[Nothing, Has[Annotations], Nothing, Any, [Env]Env, [Err]Err]
An aspect that marks tests as ignored.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
js[LowerR, UpperR, LowerE, UpperE](that: WithOut[LowerR, UpperR, LowerE, UpperE, [Env]Env, [Err]Err]): WithOut[LowerR, UpperR, LowerE, UpperE, [Env]Env, [Err]Err]
An aspect that applies the specified aspect on ScalaJS.
-
val
jsOnly: WithOut[Nothing, Has[Annotations], Nothing, Any, [Env]Env, [Err]Err]
An aspect that only runs tests on ScalaJS.
-
def
jvm[LowerR, UpperR, LowerE, UpperE](that: WithOut[LowerR, UpperR, LowerE, UpperE, [Env]Env, [Err]Err]): WithOut[LowerR, UpperR, LowerE, UpperE, [Env]Env, [Err]Err]
An aspect that applies the specified aspect on the JVM.
-
val
jvmOnly: WithOut[Nothing, Has[Annotations], Nothing, Any, [Env]Env, [Err]Err]
An aspect that only runs tests on the JVM.
-
val
mac: WithOut[Nothing, Has[Annotations], Nothing, Any, [Env]Env, [Err]Err]
Runs only on Mac operating systems.
-
def
native[LowerR, UpperR, LowerE, UpperE](that: WithOut[LowerR, UpperR, LowerE, UpperE, [Env]Env, [Err]Err]): WithOut[LowerR, UpperR, LowerE, UpperE, [Env]Env, [Err]Err]
An aspect that applies the specified aspect on ScalaNative.
-
val
nativeOnly: WithOut[Nothing, Has[Annotations], Nothing, Any, [Env]Env, [Err]Err]
An aspect that only runs tests on ScalaNative.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
nonFlaky(n: Int): WithOut[Nothing, ZTestEnv with Has[Annotations], Nothing, Any, [Env]Env, [Err]Err]
An aspect that repeats the test a specified number of times, ensuring it is stable ("non-flaky").
An aspect that repeats the test a specified number of times, ensuring it is stable ("non-flaky"). Stops at the first failure.
-
val
nonFlaky: WithOut[Nothing, ZTestEnv with Has[Annotations] with Has[TestConfig], Nothing, Any, [Env]Env, [Err]Err]
An aspect that repeats the test a default number of times, ensuring it is stable ("non-flaky").
An aspect that repeats the test a default number of times, ensuring it is stable ("non-flaky"). Stops at the first failure.
-
def
nonTermination(duration: zio.Duration): WithOut[Nothing, Has[Live], Nothing, Any, [Env]Env, [Err]Err]
Constructs an aspect that requires a test to not terminate within the specified time.
-
val
nondeterministic: WithOut[Nothing, Has[Live] with Has[TestRandom], Nothing, Any, [Env]Env, [Err]Err]
Sets the seed of the
TestRandominstance in the environment to a random value before each test. -
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
os(f: (OS) ⇒ Boolean): WithOut[Nothing, Has[Annotations], Nothing, Any, [Env]Env, [Err]Err]
An aspect that runs only on operating systems accepted by the specified predicate.
-
val
parallel: WithOut[Nothing, Any, Nothing, Any, [Env]Env, [Err]Err]
An aspect that executes the members of a suite in parallel.
-
def
parallelN(n: Int): WithOut[Nothing, Any, Nothing, Any, [Env]Env, [Err]Err]
An aspect that executes the members of a suite in parallel, up to the specified number of concurrent fibers.
-
final
def
provide[R0](r: R0): WithOut[R0, Any, Nothing, Any, [Env]Any, [Err]Err]
An aspect that provides each test in the spec with its required environment.
-
def
provideCustomServices[E, R](serviceBuilder: ZServiceBuilder[TestEnvironment, TestFailure[E], R])(implicit ev2: Union[TestEnvironment, R], tagged: zio.Tag[R], trace: ZTraceElement): WithOut[TestEnvironment with R, Any, E, Any, [Env]Has[Annotations] with Has[Live] with Has[Sized] with Has[TestClock] with Has[TestConfig] with Has[TestConsole] with Has[TestRandom] with Has[TestSystem] with Has[Clock] with Has[Console] with Has[System] with Has[Random], [Err]Err]
Provides each test with the part of the environment that is not part of the
TestEnvironment, leaving a spec that only depends on theTestEnvironment.Provides each test with the part of the environment that is not part of the
TestEnvironment, leaving a spec that only depends on theTestEnvironment.val loggingServiceBuilder: ZServiceBuilder[Any, Nothing, Logging] = ??? val spec: ZSpec[TestEnvironment with Logging, Nothing] = ??? val spec2 = spec.provideCustomServices(loggingServiceBuilder)
-
def
provideCustomServicesShared[E, R](serviceBuilder: ZServiceBuilder[TestEnvironment, TestFailure[E], R])(implicit ev2: Union[TestEnvironment, R], tagged: zio.Tag[R], trace: ZTraceElement): WithOut[TestEnvironment with R, Any, E, Any, [Env]Has[Annotations] with Has[Live] with Has[Sized] with Has[TestClock] with Has[TestConfig] with Has[TestConsole] with Has[TestRandom] with Has[TestSystem] with Has[Clock] with Has[Console] with Has[System] with Has[Random], [Err]Err]
Provides each test with the part of the environment that is not part of the
TestEnvironment, leaving a spec that only depends on theTestEnvironment.Provides each test with the part of the environment that is not part of the
TestEnvironment, leaving a spec that only depends on theTestEnvironment.val loggingServiceBuilder: ZServiceBuilder[Any, Nothing, Logging] = ??? val spec: ZSpec[TestEnvironment with Logging, Nothing] = ??? val spec2 = spec.provideCustomServices(loggingServiceBuilder)
-
final
def
provideServices[R0, E1, R1](serviceBuilder: ZServiceBuilder[R0, TestFailure[E1], R1]): WithOut[R1, Any, E1, Any, [Env]R0, [Err]Err]
An aspect that provides a service builder to the spec, translating it up a level.
-
final
def
provideServicesShared[R0, E1, R1](serviceBuilder: ZServiceBuilder[R0, TestFailure[E1], R1]): WithOut[R1, Any, E1, Any, [Env]R0, [Err]Err]
An aspect that provides a service builder to the spec, translating it up a level.
-
final
def
provideSome[R0, R1](f: (R0) ⇒ R1): WithOut[R1, Any, Nothing, Any, [Env]R0, [Err]Err]
Uses the specified function to provide each test in this spec with part of its required environment.
-
final
def
provideSomeServices[R0]: ProvideSomeServiceBuilder[R0]
Splits the environment into two parts, providing each test with one part using the specified service builder and leaving the remainder
R0.Splits the environment into two parts, providing each test with one part using the specified service builder and leaving the remainder
R0.val clockServiceBuilder: ZServiceBuilder[Any, Nothing, Has[Clock]] = ??? val spec: ZSpec[Has[Clock] with Has[Random], Nothing] = ??? val spec2 = spec @@ provideSomeServices[Has[Random]](clockServiceBuilder)
-
final
def
provideSomeServicesShared[R0]: ProvideSomeServiceBuilderShared[R0]
Splits the environment into two parts, providing all tests with a shared version of one part using the specified service builder and leaving the remainder
R0.Splits the environment into two parts, providing all tests with a shared version of one part using the specified service builder and leaving the remainder
R0.val clockServiceBuilder: ZServiceBuilder[Any, Nothing, Has[Clock]] = ??? val spec: ZSpec[Has[Clock] with Has[Random], Nothing] = ??? val spec2 = spec.provideSomeServicesShared[Has[Random]](clockServiceBuilder)
-
def
repeat[R0 <: ZTestEnv with Has[Annotations] with Has[Live]](schedule: Schedule[R0, TestSuccess, Any]): WithOut[Nothing, R0, Nothing, Any, [Env]Env, [Err]Err]
An aspect that repeats successful tests according to a schedule.
-
def
repeats(n: Int): WithOut[Nothing, Has[TestConfig], Nothing, Any, [Env]Env, [Err]Err]
An aspect that runs each test with the number of times to repeat tests to ensure they are stable set to the specified value.
-
def
restore[R0](service: (R0) ⇒ Restorable): WithOut[Nothing, R0, Nothing, Any, [Env]Env, [Err]Err]
An aspect that restores a given Restorable's state to its starting state after the test is run.
An aspect that restores a given Restorable's state to its starting state after the test is run. Note that this is only useful when repeating tests.
-
def
restoreTestClock: WithOut[Nothing, Has[TestClock], Nothing, Any, [Env]Env, [Err]Err]
An aspect that restores the TestClock's state to its starting state after the test is run.
An aspect that restores the TestClock's state to its starting state after the test is run. Note that this is only useful when repeating tests.
-
def
restoreTestConsole: WithOut[Nothing, Has[TestConsole], Nothing, Any, [Env]Env, [Err]Err]
An aspect that restores the TestConsole's state to its starting state after the test is run.
An aspect that restores the TestConsole's state to its starting state after the test is run. Note that this is only useful when repeating tests.
-
def
restoreTestEnvironment: WithOut[Nothing, ZTestEnv, Nothing, Any, [Env]Env, [Err]Err]
An aspect that restores all state in the standard provided test environments (TestClock, TestConsole, TestRandom, and TestSystem) to their starting state after the test is run.
An aspect that restores all state in the standard provided test environments (TestClock, TestConsole, TestRandom, and TestSystem) to their starting state after the test is run. Note that this is only useful when repeating tests.
-
def
restoreTestRandom: WithOut[Nothing, Has[TestRandom], Nothing, Any, [Env]Env, [Err]Err]
An aspect that restores the TestRandom's state to its starting state after the test is run.
An aspect that restores the TestRandom's state to its starting state after the test is run. Note that this is only useful when repeating tests.
-
def
restoreTestSystem: WithOut[Nothing, Has[TestSystem], Nothing, Any, [Env]Env, [Err]Err]
An aspect that restores the TestSystem's state to its starting state after the test is run.
An aspect that restores the TestSystem's state to its starting state after the test is run. Note that this is only useful when repeating tests.
-
def
retries(n: Int): WithOut[Nothing, Has[TestConfig], Nothing, Any, [Env]Env, [Err]Err]
An aspect that runs each test with the number of times to retry flaky tests set to the specified value.
-
def
retry[R0 <: ZTestEnv with Has[Annotations] with Has[Live], E0](schedule: Schedule[R0, TestFailure[E0], Any]): WithOut[Nothing, R0, Nothing, E0, [Env]Env, [Err]Err]
An aspect that retries failed tests according to a schedule.
-
def
runtimeConfig(runtimeConfigAspect: RuntimeConfigAspect): WithOut[Nothing, Any, Nothing, Any, [Env]Env, [Err]Err]
As aspect that runs each test with the specified
RuntimeConfigAspect. -
def
samples(n: Int): WithOut[Nothing, Has[TestConfig], Nothing, Any, [Env]Env, [Err]Err]
An aspect that runs each test with the number of sufficient samples to check for a random variable set to the specified value.
-
def
scala2[LowerR, UpperR, LowerE, UpperE](that: WithOut[LowerR, UpperR, LowerE, UpperE, [Env]Env, [Err]Err]): WithOut[LowerR, UpperR, LowerE, UpperE, [Env]Env, [Err]Err]
An aspect that applies the specified aspect on Scala 2.
-
def
scala211[LowerR, UpperR, LowerE, UpperE](that: WithOut[LowerR, UpperR, LowerE, UpperE, [Env]Env, [Err]Err]): WithOut[LowerR, UpperR, LowerE, UpperE, [Env]Env, [Err]Err]
An aspect that applies the specified aspect on Scala 2.11.
-
val
scala211Only: WithOut[Nothing, Has[Annotations], Nothing, Any, [Env]Env, [Err]Err]
An aspect that only runs tests on Scala 2.11.
-
def
scala212[LowerR, UpperR, LowerE, UpperE](that: WithOut[LowerR, UpperR, LowerE, UpperE, [Env]Env, [Err]Err]): WithOut[LowerR, UpperR, LowerE, UpperE, [Env]Env, [Err]Err]
An aspect that applies the specified aspect on Scala 2.12.
-
val
scala212Only: WithOut[Nothing, Has[Annotations], Nothing, Any, [Env]Env, [Err]Err]
An aspect that only runs tests on Scala 2.12.
-
def
scala213[LowerR, UpperR, LowerE, UpperE](that: WithOut[LowerR, UpperR, LowerE, UpperE, [Env]Env, [Err]Err]): WithOut[LowerR, UpperR, LowerE, UpperE, [Env]Env, [Err]Err]
An aspect that applies the specified aspect on Scala 2.13.
-
val
scala213Only: WithOut[Nothing, Has[Annotations], Nothing, Any, [Env]Env, [Err]Err]
An aspect that only runs tests on Scala 2.13.
-
val
scala2Only: WithOut[Nothing, Has[Annotations], Nothing, Any, [Env]Env, [Err]Err]
An aspect that only runs tests on Scala 2.
-
val
sequential: WithOut[Nothing, Any, Nothing, Any, [Env]Env, [Err]Err]
An aspect that executes the members of a suite sequentially.
-
def
setSeed(seed: ⇒ Long): WithOut[Nothing, Has[TestRandom], Nothing, Any, [Env]Env, [Err]Err]
Sets the seed of the
TestRandominstance in the environment to the specified value before each test. -
def
shrinks(n: Int): WithOut[Nothing, Has[TestConfig], Nothing, Any, [Env]Env, [Err]Err]
An aspect that runs each test with the maximum number of shrinkings to minimize large failures set to the specified value.
-
val
silent: WithOut[Nothing, Has[TestConsole], Nothing, Any, [Env]Env, [Err]Err]
An aspect that runs each test with the TestConsole instance in the environment set to silent mode so that console output is only written to the output buffer and not rendered to standard output.
-
def
sized(n: Int): WithOut[Nothing, Has[Sized], Nothing, Any, [Env]Env, [Err]Err]
An aspect that runs each test with the size set to the specified value.
-
val
success: WithOut[Nothing, Any, Nothing, Any, [Env]Env, [Err]Err]
An aspect that converts ignored tests into test failures.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tag(tag: String, tags: String*): WithOut[Nothing, Any, Nothing, Any, [Env]Env, [Err]Err]
Annotates tests with string tags.
-
val
timed: WithOut[Nothing, Has[Live] with Has[Annotations], Nothing, Any, [Env]Env, [Err]Err]
Annotates tests with their execution times.
-
def
timeout(duration: zio.Duration): WithOut[Nothing, Has[Live], Nothing, Any, [Env]Env, [Err]Err]
An aspect that times out tests using the specified duration.
An aspect that times out tests using the specified duration.
- duration
maximum test duration
-
def
timeoutWarning(duration: zio.Duration): WithOut[Nothing, Has[Live], Nothing, Any, [Env]Env, [Err]Err]
A test aspect that prints a warning to the console when a test takes longer than the specified duration.
A test aspect that prints a warning to the console when a test takes longer than the specified duration.
- Definition Classes
- TimeoutVariants
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
val
unix: WithOut[Nothing, Has[Annotations], Nothing, Any, [Env]Env, [Err]Err]
Runs only on Unix / Linux operating systems.
-
def
verify[R0, E0](condition: ⇒ ZIO[R0, E0, TestResult]): WithOut[Nothing, R0, E0, Any, [Env]Env, [Err]Err]
Verifies the specified post-condition after each test is run.
-
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()
-
val
windows: WithOut[Nothing, Has[Annotations], Nothing, Any, [Env]Env, [Err]Err]
Runs only on Windows operating systems.