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, +LowerS, -UpperS] extends TestAspect[LowerR, UpperR, LowerE, UpperE, LowerS, UpperS]

    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]): TestAspect[Nothing, R0, E0, Any, Nothing, Any]

    Permalink

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

  5. def around[R0, E0](before: ZIO[R0, E0, Any], after: ZIO[R0, Nothing, Any]): PerTest[Nothing, R0, E0, Any, Nothing, Any]

    Permalink

    Constructs an aspect that evaluates every test inside the context of a Managed.

  6. def aroundTest[R0, E0, S0](managed: ZManaged[R0, TestFailure[E0], (TestSuccess[S0]) ⇒ ZIO[R0, TestFailure[E0], TestSuccess[S0]]]): PerTest[Nothing, R0, E0, Any, S0, S0]

    Permalink

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

  7. final def asInstanceOf[T0]: T0

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

    Permalink

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

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

    Permalink

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

  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def dotty[LowerR, UpperR, LowerE, UpperE, LowerS, UpperS](that: TestAspect[LowerR, UpperR, LowerE, UpperE, LowerS, UpperS]): TestAspect[LowerR, UpperR, LowerE, UpperE, LowerS, UpperS]

    Permalink

    An aspect that applies the specified aspect on Dotty.

  12. val dottyOnly: TestAspectPoly

    Permalink

    An aspect that only runs tests on Dotty.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. val eventually: TestAspectPoly

    Permalink

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

  16. val exceptDotty: TestAspectPoly

    Permalink

    An aspect that runs tests on all versions except Dotty.

  17. val exceptJS: TestAspectPoly

    Permalink

    An aspect that runs tests on all platforms except ScalaJS.

  18. val exceptJVM: TestAspectPoly

    Permalink

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

  19. val exceptScala2: TestAspectPoly

    Permalink

    An aspect that runs tests on all versions except Scala2.

  20. 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).

  21. def failure[E0](p: Assertion[TestFailure[E0]]): PerTest[Nothing, Any, Nothing, E0, Unit, Unit]

    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.

  22. val failure: PerTest[Nothing, Any, Nothing, Any, Unit, Unit]

    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.

  23. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. def flaky(n: Int): TestAspectPoly

    Permalink

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

  25. val flaky: TestAspectPoly

    Permalink

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

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

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

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

    Permalink

    An aspect that returns the tests unchanged

  29. def ifEnv(env: String, assertion: Assertion[String]): TestAspect[Nothing, Live[System], Nothing, Any, Nothing, Any]

    Permalink

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

  30. def ifEnvSet(env: String): TestAspect[Nothing, Live[System], Nothing, Any, Nothing, Any]

    Permalink

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

  31. def ifProp(prop: String, assertion: Assertion[String]): TestAspect[Nothing, Live[System], Nothing, Any, Nothing, Any]

    Permalink

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

  32. def ifPropSet(prop: String): TestAspect[Nothing, Live[System], Nothing, Any, Nothing, Any]

    Permalink

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

  33. val ignore: TestAspectPoly

    Permalink

    An aspect that marks tests as ignored.

  34. final def isInstanceOf[T0]: Boolean

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

    Permalink

    An aspect that applies the specified aspect on ScalaJS.

  36. val jsOnly: TestAspectPoly

    Permalink

    An aspect that only runs tests on ScalaJS.

  37. def jvm[LowerR, UpperR, LowerE, UpperE, LowerS, UpperS](that: TestAspect[LowerR, UpperR, LowerE, UpperE, LowerS, UpperS]): TestAspect[LowerR, UpperR, LowerE, UpperE, LowerS, UpperS]

    Permalink

    An aspect that applies the specified aspect on the JVM.

  38. val jvmOnly: TestAspectPoly

    Permalink

    An aspect that only runs tests on the JVM.

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

    Permalink
    Definition Classes
    AnyRef
  40. def nonFlaky(n: Int): TestAspectPoly

    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.

  41. val nonFlaky: TestAspectPoly

    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.

  42. def nonFlakyPar(n: Int): TestAspectPoly

    Permalink

    An aspect that runs the test a specified number of times in parallel, ensuring it is stable ("non-flaky").

    An aspect that runs the test a specified number of times in parallel, ensuring it is stable ("non-flaky"). Stops at the first failure. This can be useful for testing effects during periods of high contention.

  43. val nonFlakyPar: TestAspectPoly

    Permalink

    An aspect that runs the test a default number of times in parallel, ensuring it is stable ("non-flaky").

    An aspect that runs the test a default number of times in parallel, ensuring it is stable ("non-flaky"). Stops at the first failure. This can be useful for testing effects during periods of high contention.

  44. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  46. val parallel: TestAspectPoly

    Permalink

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

  47. 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.

  48. def retry[R0, E0, S0](schedule: Schedule[R0, TestFailure[E0], S0]): TestAspect[Nothing, R0, Nothing, E0, Nothing, Any]

    Permalink

    An aspect that retries failed tests according to a schedule.

  49. def scala2[LowerR, UpperR, LowerE, UpperE, LowerS, UpperS](that: TestAspect[LowerR, UpperR, LowerE, UpperE, LowerS, UpperS]): TestAspect[LowerR, UpperR, LowerE, UpperE, LowerS, UpperS]

    Permalink

    An aspect that applies the specified aspect on Scala 2.

  50. val scala2Only: TestAspectPoly

    Permalink

    An aspect that only runs tests on Scala 2.

  51. val sequential: TestAspectPoly

    Permalink

    An aspect that executes the members of a suite sequentially.

  52. val success: TestAspectPoly

    Permalink

    An aspect that converts ignored tests into test failures.

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

    Permalink
    Definition Classes
    AnyRef
  54. def timeout(duration: Duration, interruptDuration: Duration = 1.second): TestAspect[Nothing, Live[Clock], Nothing, Any, Nothing, Any]

    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

    interruptDuration

    after test timeout will wait given duration for successful interruption

  55. def timeoutWarning(duration: Duration): TestAspect[Nothing, Live[Clock] with Live[Console], Nothing, Any, 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
  56. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  57. final def wait(): Unit

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

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

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

Inherited from TimeoutVariants

Inherited from AnyRef

Inherited from Any

Ungrouped