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, E0, (Either[TestFailure[Nothing], TestSuccess[S0]]) ⇒ ZIO[R0, E0, Either[TestFailure[Nothing], 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, E0, Either[TestFailure[Nothing], TestSuccess[S0]]]) ⇒ ZIO[R0, E0, Either[TestFailure[Nothing], 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. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink

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

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

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

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

  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. val flaky: TestAspectPoly

    Permalink

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

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

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

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

    Permalink

    An aspect that returns the tests unchanged

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

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

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

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

  26. val ignore: TestAspectPoly

    Permalink

    An aspect that marks tests as ignored.

  27. final def isInstanceOf[T0]: Boolean

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

    Permalink
  29. val jsOnly: TestAspectPoly

    Permalink

    An aspect that only runs tests on ScalaJS.

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

    Permalink
  31. val jvmOnly: TestAspectPoly

    Permalink

    An aspect that only runs tests on the JVM.

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

    Permalink
    Definition Classes
    AnyRef
  33. def nonFlaky(n0: 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.

  34. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  36. val parallel: TestAspectPoly

    Permalink

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

  37. def parallelN(n: Int): TestAspectPoly

    Permalink

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

  38. def retry[R0, E0, S0](schedule: ZSchedule[R0, TestFailure[E0], S0]): TestAspect[Nothing, Live[R0], Nothing, E0, Nothing, S0]

    Permalink

    An aspect that retries failed tests according to a schedule.

  39. val sequential: TestAspectPoly

    Permalink

    An aspect that executes the members of a suite sequentially.

  40. val success: TestAspectPoly

    Permalink

    An aspect that converts ignored tests into test failures.

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

    Permalink
    Definition Classes
    AnyRef
  42. 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

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

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

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

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

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

Inherited from TimeoutVariants

Inherited from AnyRef

Inherited from Any

Ungrouped