Object/Trait

zio.test

TestAspect

Related Docs: trait TestAspect | package test

Permalink

object TestAspect extends TestAspectCompanionVersionSpecific with TimeoutVariants

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TestAspect
  2. TimeoutVariants
  3. TestAspectCompanionVersionSpecific
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. abstract class PerTest[+LowerR, -UpperR, +LowerE, -UpperE] extends TestAspect[LowerR, UpperR, LowerE, UpperE]

    Permalink
  2. final class ProvideSomeLayer[R0] extends AnyVal

    Permalink
  3. final class ProvideSomeLayerShared[R0] extends AnyVal

    Permalink
  4. type WithOut[+LowerEnv, -UpperEnv, +LowerErr, -UpperErr, OutEnv0[Err], OutErr0[Env]] = TestAspect[LowerEnv, UpperEnv, LowerErr, UpperErr] { ... /* 2 definitions in type refinement */ }

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def after[R0, E0](effect: ZIO[R0, E0, Any]): WithOut[Nothing, R0, E0, Any, [Env]Env, [Err]Err]

    Permalink

    Constructs an aspect that runs the specified effect after every test.

  5. def afterAll[R0](effect: ZIO[R0, Nothing, Any]): WithOut[Nothing, R0, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    Constructs an aspect that runs the specified effect after all tests.

  6. def annotate[V](key: TestAnnotation[V], value: V): WithOut[Nothing, Any, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    Annotates tests with the specified test annotation.

  7. def around[R0, E0](before: ZIO[R0, E0, Any], after: ZIO[R0, Nothing, Any]): WithOut[Nothing, R0, E0, Any, [Env]Env, [Err]Err]

    Permalink

    A less powerful variant of around where the result of before is not required by after.

  8. def aroundAll[R0, E0](before: ZIO[R0, E0, Any], after: ZIO[R0, Nothing, Any]): WithOut[Nothing, R0, E0, Any, [Env]Env, [Err]Err]

    Permalink

    A less powerful variant of aroundAll where the result of before is not required by after.

  9. 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]

    Permalink

    Constructs an aspect that evaluates all tests between two effects, before and after, where the result of before can be used in after.

  10. def aroundTest[R0, E0](managed: ZManaged[R0, TestFailure[E0], (TestSuccess) ⇒ ZIO[R0, TestFailure[E0], TestSuccess]]): WithOut[Nothing, R0, E0, Any, [Env]Env, [Err]Err]

    Permalink

    Constructs an aspect that evaluates every test inside the context of the managed function.

  11. 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]

    Permalink

    Constructs an aspect that evaluates every test between two effects, before and after, where the result of before can be used in after.

  12. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  13. def aspect[R0, E0](f: (ZIO[R0, TestFailure[E0], TestSuccess]) ⇒ ZIO[R0, TestFailure[E0], TestSuccess]): WithOut[R0, R0, E0, E0, [Env]Env, [Err]Err]

    Permalink

    Constructs a simple monomorphic aspect that only works with the specified environment and error type.

  14. def before[R0, E0](effect: ZIO[R0, E0, Any]): WithOut[Nothing, R0, E0, Any, [Env]Env, [Err]Err]

    Permalink

    Constructs an aspect that runs the specified effect before every test.

  15. def beforeAll[R0, E0](effect: ZIO[R0, E0, Any]): WithOut[Nothing, R0, E0, Any, [Env]Env, [Err]Err]

    Permalink

    Constructs an aspect that runs the specified effect a single time before all tests.

  16. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. val debug: WithOut[Nothing, TestConsole, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that runs each test with the TestConsole instance 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.

  18. def diagnose(duration: zio.Duration): WithOut[Nothing, Live with Annotations, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    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.

  19. 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]

    Permalink

    An aspect that applies the specified aspect on Dotty.

  20. val dottyOnly: WithOut[Nothing, Annotations, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that only runs tests on Dotty.

  21. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  23. val eventually: WithOut[Nothing, ZTestEnv, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that retries a test until success, without limit.

  24. val exceptDotty: WithOut[Nothing, Annotations, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that runs tests on all versions except Dotty.

  25. val exceptJS: WithOut[Nothing, Annotations, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that runs tests on all platforms except ScalaJS.

  26. val exceptJVM: WithOut[Nothing, Annotations, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that runs tests on all platforms except the JVM.

  27. val exceptNative: WithOut[Nothing, Annotations, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that runs tests on all platforms except ScalaNative.

  28. val exceptScala2: WithOut[Nothing, Annotations, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that runs tests on all versions except Scala 2.

  29. val exceptScala211: WithOut[Nothing, Annotations, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that runs tests on all versions except Scala 2.11.

  30. val exceptScala212: WithOut[Nothing, Annotations, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that runs tests on all versions except Scala 2.12.

  31. val exceptScala213: WithOut[Nothing, Annotations, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that runs tests on all versions except Scala 2.13.

  32. def executionStrategy(exec: ExecutionStrategy): WithOut[Nothing, Any, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that sets suites to the specified execution strategy, but only if their current strategy is inherited (undefined).

  33. def failing[E0](assertion: (TestFailure[E0]) ⇒ Boolean): WithOut[Nothing, Any, Nothing, E0, [Env]Env, [Err]Err]

    Permalink

    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.

  34. val failing: WithOut[Nothing, Any, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    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.

  35. lazy val fibers: WithOut[Nothing, Annotations, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    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.

  36. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  37. def flaky(n: Int): WithOut[Nothing, ZTestEnv with Annotations, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that retries a test until success, with the specified limit, for use with flaky tests.

  38. val flaky: WithOut[Nothing, Annotations with TestConfig with ZTestEnv, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that retries a test until success, with a default limit, for use with flaky tests.

  39. val forked: WithOut[Nothing, Any, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that runs each test on its own separate fiber.

  40. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  41. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  42. val identity: WithOut[Nothing, Any, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that returns the tests unchanged

  43. def ifEnv(env: String)(assertion: (String) ⇒ Boolean): WithOut[Nothing, Live with Annotations, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that only runs a test if the specified environment variable satisfies the specified assertion.

  44. def ifEnvSet(env: String): WithOut[Nothing, Live with Annotations, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    As aspect that only runs a test if the specified environment variable is set.

  45. def ifProp(prop: String)(assertion: (String) ⇒ Boolean): WithOut[Nothing, Live with Annotations, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that only runs a test if the specified Java property satisfies the specified assertion.

  46. def ifPropSet(prop: String): WithOut[Nothing, Live with Annotations, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    As aspect that only runs a test if the specified Java property is set.

  47. val ignore: WithOut[Nothing, Annotations, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that marks tests as ignored.

  48. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  49. 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]

    Permalink

    An aspect that applies the specified aspect on ScalaJS.

  50. val jsOnly: WithOut[Nothing, Annotations, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that only runs tests on ScalaJS.

  51. 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]

    Permalink

    An aspect that applies the specified aspect on the JVM.

  52. val jvmOnly: WithOut[Nothing, Annotations, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that only runs tests on the JVM.

  53. val mac: WithOut[Nothing, Annotations, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    Runs only on Mac operating systems.

  54. 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]

    Permalink

    An aspect that applies the specified aspect on ScalaNative.

  55. val nativeOnly: WithOut[Nothing, Annotations, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that only runs tests on ScalaNative.

  56. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  57. def nonFlaky(n: Int): WithOut[Nothing, ZTestEnv with Annotations, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    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.

  58. val nonFlaky: WithOut[Nothing, ZTestEnv with Annotations with TestConfig, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    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.

  59. def nonTermination(duration: zio.Duration): WithOut[Nothing, Live, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    Constructs an aspect that requires a test to not terminate within the specified time.

  60. val nondeterministic: WithOut[Nothing, Live with TestRandom, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    Sets the seed of the TestRandom instance in the environment to a random value before each test.

  61. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  62. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  63. def os(f: (OS) ⇒ Boolean): WithOut[Nothing, Annotations, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that runs only on operating systems accepted by the specified predicate.

  64. val parallel: WithOut[Nothing, Any, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that executes the members of a suite in parallel.

  65. def parallelN(n: Int): WithOut[Nothing, Any, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that executes the members of a suite in parallel, up to the specified number of concurrent fibers.

  66. final def provide[R0, E1, R1](layer: ZLayer[R0, TestFailure[E1], R1]): WithOut[R1, Any, E1, Any, [Env]R0, [Err]Err]

    Permalink

    An aspect that provides a layer to the spec, translating it up a level.

  67. def provideCustom[E, R](layer: ZLayer[TestEnvironment, TestFailure[E], R])(implicit tagged: zio.Tag[R], trace: ZTraceElement): WithOut[TestEnvironment with R, Any, E, Any, [Env]Annotations with Live with Sized with TestClock with TestConfig with TestConsole with TestRandom with TestSystem with Clock with Console with System with Random, [Err]Err]

    Permalink

    Provides each test with the part of the environment that is not part of the TestEnvironment, leaving a spec that only depends on the TestEnvironment.

    Provides each test with the part of the environment that is not part of the TestEnvironment, leaving a spec that only depends on the TestEnvironment.

    val loggingLayer: ZLayer[Any, Nothing, Logging] = ???
    
    val spec: ZSpec[TestEnvironment with Logging, Nothing] = ???
    
    val spec2 = spec.provideCustom(loggingLayer)
  68. def provideCustomShared[E, R](layer: ZLayer[TestEnvironment, TestFailure[E], R])(implicit tagged: zio.Tag[R], trace: ZTraceElement): WithOut[TestEnvironment with R, Any, E, Any, [Env]Annotations with Live with Sized with TestClock with TestConfig with TestConsole with TestRandom with TestSystem with Clock with Console with System with Random, [Err]Err]

    Permalink

    Provides each test with the part of the environment that is not part of the TestEnvironment, leaving a spec that only depends on the TestEnvironment.

    Provides each test with the part of the environment that is not part of the TestEnvironment, leaving a spec that only depends on the TestEnvironment.

    val loggingLayer: ZLayer[Any, Nothing, Logging] = ???
    
    val spec: ZSpec[TestEnvironment with Logging, Nothing] = ???
    
    val spec2 = spec.provideCustom(loggingLayer)
  69. final def provideEnvironment[R0](r: ZEnvironment[R0]): WithOut[R0, Any, Nothing, Any, [Env]Any, [Err]Err]

    Permalink

    An aspect that provides each test in the spec with its required environment.

  70. final def provideShared[R0, E1, R1](layer: ZLayer[R0, TestFailure[E1], R1]): WithOut[R1, Any, E1, Any, [Env]R0, [Err]Err]

    Permalink

    An aspect that provides a layer to the spec, translating it up a level.

  71. final def provideSome[R0]: ProvideSomeLayer[R0]

    Permalink

    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, Clock] = ???
    
    val spec: ZSpec[Clock with Random, Nothing] = ???
    
    val spec2 = spec @@ provideSome[Random](clockServiceBuilder)
  72. final def provideSomeEnvironment[R0, R1](f: (ZEnvironment[R0]) ⇒ ZEnvironment[R1]): WithOut[R1, Any, Nothing, Any, [Env]R0, [Err]Err]

    Permalink

    Transforms the environment being provided to this spec with the specified function.

  73. final def provideSomeShared[R0]: ProvideSomeLayerShared[R0]

    Permalink

    Splits the environment into two parts, providing all tests with a shared version of one part using the specified layer and leaving the remainder R0.

    Splits the environment into two parts, providing all tests with a shared version of one part using the specified layer and leaving the remainder R0.

    val clockLayer: ZLayer[Any, Nothing, Clock] = ???
    
    val spec: ZSpec[Clock with Random, Nothing] = ???
    
    val spec2 = spec.provideSomeShared[Random](clockLayer)
  74. def repeat[R0 <: ZTestEnv with Annotations with Live](schedule: Schedule[R0, TestSuccess, Any]): WithOut[Nothing, R0, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that repeats successful tests according to a schedule.

  75. def repeats(n: Int): WithOut[Nothing, TestConfig, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that runs each test with the number of times to repeat tests to ensure they are stable set to the specified value.

  76. def restore[R0](service: (ZEnvironment[R0]) ⇒ Restorable): WithOut[Nothing, R0, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    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.

  77. def restoreTestClock: WithOut[Nothing, TestClock, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    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.

  78. def restoreTestConsole: WithOut[Nothing, TestConsole, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    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.

  79. def restoreTestEnvironment: WithOut[Nothing, ZTestEnv, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    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.

  80. def restoreTestRandom: WithOut[Nothing, TestRandom, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    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.

  81. def restoreTestSystem: WithOut[Nothing, TestSystem, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    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.

  82. def retries(n: Int): WithOut[Nothing, TestConfig, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that runs each test with the number of times to retry flaky tests set to the specified value.

  83. def retry[R0 <: ZTestEnv with Annotations with Live, E0](schedule: Schedule[R0, TestFailure[E0], Any]): WithOut[Nothing, R0, Nothing, E0, [Env]Env, [Err]Err]

    Permalink

    An aspect that retries failed tests according to a schedule.

  84. def runtimeConfig(runtimeConfigAspect: RuntimeConfigAspect): WithOut[Nothing, Any, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    As aspect that runs each test with the specified RuntimeConfigAspect.

  85. def samples(n: Int): WithOut[Nothing, TestConfig, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that runs each test with the number of sufficient samples to check for a random variable set to the specified value.

  86. 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]

    Permalink

    An aspect that applies the specified aspect on Scala 2.

  87. 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]

    Permalink

    An aspect that applies the specified aspect on Scala 2.11.

  88. val scala211Only: WithOut[Nothing, Annotations, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that only runs tests on Scala 2.11.

  89. 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]

    Permalink

    An aspect that applies the specified aspect on Scala 2.12.

  90. val scala212Only: WithOut[Nothing, Annotations, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that only runs tests on Scala 2.12.

  91. 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]

    Permalink

    An aspect that applies the specified aspect on Scala 2.13.

  92. val scala213Only: WithOut[Nothing, Annotations, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that only runs tests on Scala 2.13.

  93. val scala2Only: WithOut[Nothing, Annotations, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that only runs tests on Scala 2.

  94. val sequential: WithOut[Nothing, Any, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that executes the members of a suite sequentially.

  95. def setSeed(seed: ⇒ Long): WithOut[Nothing, TestRandom, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    Sets the seed of the TestRandom instance in the environment to the specified value before each test.

  96. def shrinks(n: Int): WithOut[Nothing, TestConfig, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that runs each test with the maximum number of shrinkings to minimize large failures set to the specified value.

  97. val silent: WithOut[Nothing, TestConsole, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    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.

  98. def sized(n: Int): WithOut[Nothing, Sized, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that runs each test with the size set to the specified value.

  99. val success: WithOut[Nothing, Any, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that converts ignored tests into test failures.

  100. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  101. def tag(tag: String, tags: String*): WithOut[Nothing, Any, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    Annotates tests with string tags.

  102. val timed: WithOut[Nothing, Live with Annotations, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    Annotates tests with their execution times.

  103. def timeout(duration: zio.Duration): WithOut[Nothing, Live, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    An aspect that times out tests using the specified duration.

    An aspect that times out tests using the specified duration.

    duration

    maximum test duration

  104. def timeoutWarning(duration: zio.Duration): WithOut[Nothing, Live, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    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
  105. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  106. val unix: WithOut[Nothing, Annotations, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    Runs only on Unix / Linux operating systems.

  107. def verify[R0, E0](condition: ⇒ ZIO[R0, E0, TestResult]): WithOut[Nothing, R0, E0, Any, [Env]Env, [Err]Err]

    Permalink

    Verifies the specified post-condition after each test is run.

  108. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  109. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  110. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  111. val windows: WithOut[Nothing, Annotations, Nothing, Any, [Env]Env, [Err]Err]

    Permalink

    Runs only on Windows operating systems.

Deprecated Value Members

  1. final def provideSomeLayer[R0]: ProvideSomeLayer[R0]

    Permalink

    Splits the environment into two parts, providing each test with one part using the specified layer and leaving the remainder R0.

    Splits the environment into two parts, providing each test with one part using the specified layer and leaving the remainder R0.

    val clockLayer: ZLayer[Any, Nothing, Clock] = ???
    
    val spec: ZSpec[Clock with Random, Nothing] = ???
    
    val spec2 = spec @@ provideSomeLayer[Random](clockLayer)
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) Use provideSome

  2. final def provideSomeLayerShared[R0]: ProvideSomeLayerShared[R0]

    Permalink

    Splits the environment into two parts, providing all tests with a shared version of one part using the specified layer and leaving the remainder R0.

    Splits the environment into two parts, providing all tests with a shared version of one part using the specified layer and leaving the remainder R0.

    val clockLayer: ZLayer[Any, Nothing, Clock] = ???
    
    val spec: ZSpec[Clock with Random, Nothing] = ???
    
    val spec2 = spec.provideSomeLayerShared[Random](clockLayer)
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use provideSomeShared

Inherited from TimeoutVariants

Inherited from AnyRef

Inherited from Any

Ungrouped