Object/Trait

zio.test

TestAspect

Related Docs: trait TestAspect | package test

Permalink

object TestAspect extends TimeoutVariants

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

Type Members

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

    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. object PerTest

    Permalink
  5. def after[R0, E0](effect: ZIO[R0, E0, Any]): TestAspect[Nothing, R0, E0, Any]

    Permalink

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

  6. def annotate[V](key: TestAnnotation[V], value: V): TestAspectPoly

    Permalink

    Annotates tests with the specified test annotation.

  7. def around[R0, E0, A0](before: ZIO[R0, E0, A0])(after: (A0) ⇒ ZIO[R0, Nothing, Any]): TestAspect[Nothing, R0, E0, Any]

    Permalink

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

  8. def aroundTest[R0, E0](managed: ZManaged[R0, TestFailure[E0], (TestSuccess) ⇒ ZIO[R0, TestFailure[E0], TestSuccess]]): TestAspect[Nothing, R0, E0, Any]

    Permalink

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

  9. def around_[R0, E0](before: ZIO[R0, E0, Any], after: ZIO[R0, Nothing, Any]): TestAspect[Nothing, R0, E0, Any]

    Permalink

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

  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def aspect[R0, E0](f: (ZIO[R0, TestFailure[E0], TestSuccess]) ⇒ ZIO[R0, TestFailure[E0], TestSuccess]): TestAspect[R0, R0, E0, E0]

    Permalink

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

  12. def before[R0, E0](effect: ZIO[R0, Nothing, Any]): TestAspect[Nothing, R0, E0, Any]

    Permalink

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

  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. val debug: TestAspectAtLeastR[TestConsole]

    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.

  15. def diagnose(duration: Duration): TestAspectAtLeastR[Live]

    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.

  16. def dotty[LowerR, UpperR, LowerE, UpperE](that: TestAspect[LowerR, UpperR, LowerE, UpperE]): TestAspect[LowerR, UpperR, LowerE, UpperE]

    Permalink

    An aspect that applies the specified aspect on Dotty.

  17. val dottyOnly: TestAspectAtLeastR[Annotations]

    Permalink

    An aspect that only runs tests on Dotty.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  20. val eventually: TestAspectAtLeastR[ZTestEnv]

    Permalink

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

  21. val exceptDotty: TestAspectAtLeastR[Annotations]

    Permalink

    An aspect that runs tests on all versions except Dotty.

  22. val exceptJS: TestAspectAtLeastR[Annotations]

    Permalink

    An aspect that runs tests on all platforms except ScalaJS.

  23. val exceptJVM: TestAspectAtLeastR[Annotations]

    Permalink

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

  24. val exceptNative: TestAspectAtLeastR[Annotations]

    Permalink

    An aspect that runs tests on all platforms except ScalaNative.

  25. val exceptScala2: TestAspectAtLeastR[Annotations]

    Permalink

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

  26. val exceptScala211: TestAspectAtLeastR[Annotations]

    Permalink

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

  27. val exceptScala212: TestAspectAtLeastR[Annotations]

    Permalink

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

  28. val exceptScala213: TestAspectAtLeastR[Annotations]

    Permalink

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

  29. def executionStrategy(exec: ExecutionStrategy): TestAspectPoly

    Permalink

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

  30. def failing[E0](assertion: Assertion[TestFailure[E0]]): TestAspect[Nothing, Any, Nothing, E0]

    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.

  31. val failing: TestAspectPoly

    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.

  32. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  33. def flaky(n: Int): TestAspectAtLeastR[ZTestEnv with Annotations]

    Permalink

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

  34. val flaky: TestAspectAtLeastR[ZTestEnv with Annotations]

    Permalink

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

  35. val forked: TestAspectPoly

    Permalink

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  38. val identity: TestAspectPoly

    Permalink

    An aspect that returns the tests unchanged

  39. def ifEnv(env: String, assertion: Assertion[String]): TestAspectAtLeastR[Live with Annotations]

    Permalink

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

  40. def ifEnvSet(env: String): TestAspectAtLeastR[Live with Annotations]

    Permalink

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

  41. def ifProp(prop: String, assertion: Assertion[String]): TestAspectAtLeastR[Live with Annotations]

    Permalink

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

  42. def ifPropSet(prop: String): TestAspectAtLeastR[Live with Annotations]

    Permalink

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

  43. val ignore: TestAspectAtLeastR[Annotations]

    Permalink

    An aspect that marks tests as ignored.

  44. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  45. def js[LowerR, UpperR, LowerE, UpperE](that: TestAspect[LowerR, UpperR, LowerE, UpperE]): TestAspect[LowerR, UpperR, LowerE, UpperE]

    Permalink

    An aspect that applies the specified aspect on ScalaJS.

  46. val jsOnly: TestAspectAtLeastR[Annotations]

    Permalink

    An aspect that only runs tests on ScalaJS.

  47. def jvm[LowerR, UpperR, LowerE, UpperE](that: TestAspect[LowerR, UpperR, LowerE, UpperE]): TestAspect[LowerR, UpperR, LowerE, UpperE]

    Permalink

    An aspect that applies the specified aspect on the JVM.

  48. val jvmOnly: TestAspectAtLeastR[Annotations]

    Permalink

    An aspect that only runs tests on the JVM.

  49. def native[LowerR, UpperR, LowerE, UpperE](that: TestAspect[LowerR, UpperR, LowerE, UpperE]): TestAspect[LowerR, UpperR, LowerE, UpperE]

    Permalink

    An aspect that applies the specified aspect on ScalaNative.

  50. val nativeOnly: TestAspectAtLeastR[Annotations]

    Permalink

    An aspect that only runs tests on ScalaNative.

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

    Permalink
    Definition Classes
    AnyRef
  52. def nonFlaky(n: Int): TestAspectAtLeastR[ZTestEnv with Annotations]

    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.

  53. val nonFlaky: TestAspectAtLeastR[ZTestEnv with Annotations]

    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.

  54. def nonTermination(duration: Duration): TestAspectAtLeastR[Live]

    Permalink

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

  55. val nondeterministic: TestAspectAtLeastR[Live with TestRandom]

    Permalink

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

  56. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  58. val only: TestAspectPoly

    Permalink

    Annotates tests to be the only ones evaluated.

  59. val parallel: TestAspectPoly

    Permalink

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

  60. def parallelN(n: Int): TestAspectPoly

    Permalink

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

  61. def repeat[R0 <: ZTestEnv with Annotations](schedule: Schedule[R0, TestSuccess, Any]): TestAspectAtLeastR[R0]

    Permalink

    An aspect that repeats successful tests according to a schedule.

  62. def restore[R0](service: (R0) ⇒ Restorable): TestAspectAtLeastR[R0]

    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.

  63. def restoreTestClock: TestAspectAtLeastR[TestClock]

    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.

  64. def restoreTestConsole: TestAspectAtLeastR[TestConsole]

    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.

  65. def restoreTestEnvironment: TestAspectAtLeastR[ZTestEnv]

    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.

  66. def restoreTestRandom: TestAspectAtLeastR[TestRandom]

    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.

  67. def restoreTestSystem: TestAspectAtLeastR[ZTestEnv]

    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.

  68. def retry[R0 <: ZTestEnv with Annotations, E0](schedule: Schedule[R0, TestFailure[E0], Any]): TestAspect[Nothing, R0, Nothing, E0]

    Permalink

    An aspect that retries failed tests according to a schedule.

  69. def scala2[LowerR, UpperR, LowerE, UpperE](that: TestAspect[LowerR, UpperR, LowerE, UpperE]): TestAspect[LowerR, UpperR, LowerE, UpperE]

    Permalink

    An aspect that applies the specified aspect on Scala 2.

  70. def scala211[LowerR, UpperR, LowerE, UpperE](that: TestAspect[LowerR, UpperR, LowerE, UpperE]): TestAspect[LowerR, UpperR, LowerE, UpperE]

    Permalink

    An aspect that applies the specified aspect on Scala 2.11.

  71. val scala211Only: TestAspectAtLeastR[Annotations]

    Permalink

    An aspect that only runs tests on Scala 2.11.

  72. def scala212[LowerR, UpperR, LowerE, UpperE](that: TestAspect[LowerR, UpperR, LowerE, UpperE]): TestAspect[LowerR, UpperR, LowerE, UpperE]

    Permalink

    An aspect that applies the specified aspect on Scala 2.12.

  73. val scala212Only: TestAspectAtLeastR[Annotations]

    Permalink

    An aspect that only runs tests on Scala 2.12.

  74. def scala213[LowerR, UpperR, LowerE, UpperE](that: TestAspect[LowerR, UpperR, LowerE, UpperE]): TestAspect[LowerR, UpperR, LowerE, UpperE]

    Permalink

    An aspect that applies the specified aspect on Scala 2.13.

  75. val scala213Only: TestAspectAtLeastR[Annotations]

    Permalink

    An aspect that only runs tests on Scala 2.13.

  76. val scala2Only: TestAspectAtLeastR[Annotations]

    Permalink

    An aspect that only runs tests on Scala 2.

  77. val sequential: TestAspectPoly

    Permalink

    An aspect that executes the members of a suite sequentially.

  78. def setSeed(seed: ⇒ Long): TestAspectAtLeastR[TestRandom]

    Permalink

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

  79. val silent: TestAspectAtLeastR[TestConsole]

    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.

  80. val success: TestAspectPoly

    Permalink

    An aspect that converts ignored tests into test failures.

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

    Permalink
    Definition Classes
    AnyRef
  82. def tag(tag: String, tags: String*): TestAspectPoly

    Permalink

    Annotates tests with string tags.

  83. val timed: TestAspectAtLeastR[Live with Annotations]

    Permalink

    Annotates tests with their execution times.

  84. def timeout(duration: Duration): TestAspectAtLeastR[Live]

    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

  85. def timeoutWarning(duration: Duration): TestAspect[Nothing, Live, Nothing, Any]

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

    Permalink
    Definition Classes
    AnyRef → Any
  87. def verify[R0, E0](condition: ⇒ ZIO[R0, E0, TestResult]): TestAspect[Nothing, R0, E0, Any]

    Permalink

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

  88. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from TimeoutVariants

Inherited from AnyRef

Inherited from Any

Ungrouped