Attributes
- Companion
- class
- Source
- TestAspect.scala
- Graph
-
- Supertypes
- Self type
-
TestAspect.type
Members list
Type members
Classlikes
Attributes
- Companion
- object
- Source
- TestAspect.scala
- Supertypes
Attributes
- Companion
- class
- Source
- TestAspect.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
PerTest.type
Types
Attributes
- Source
- TestAspect.scala
Value members
Concrete methods
Constructs an aspect that runs the specified effect after every test.
Constructs an aspect that runs the specified effect after every test.
Attributes
- Source
- TestAspect.scala
Constructs an aspect that runs the specified effect after all tests.
Constructs an aspect that runs the specified effect after all tests.
Attributes
- Source
- TestAspect.scala
Constructs an aspect that runs the specified effect after all tests if there is at least one failure.
Constructs an aspect that runs the specified effect after all tests if there is at least one failure.
Attributes
- Source
- TestAspect.scala
Constructs an aspect that runs the specified effect after all tests if there are no failures.
Constructs an aspect that runs the specified effect after all tests if there are no failures.
Attributes
- Source
- TestAspect.scala
Constructs an aspect that runs the specified effect after every failed test.
Constructs an aspect that runs the specified effect after every failed test.
Attributes
- Source
- TestAspect.scala
Constructs an aspect that runs the specified effect after every successful test.
Constructs an aspect that runs the specified effect after every successful test.
Attributes
- Source
- TestAspect.scala
Annotates tests with the specified test annotation.
A less powerful variant of around where the result of before is not required by after.
A less powerful variant of around where the result of before is not required by after.
Attributes
- Source
- TestAspect.scala
A less powerful variant of aroundAll where the result of before is not required by after.
A less powerful variant of aroundAll where the result of before is not required by after.
Attributes
- Source
- TestAspect.scala
Constructs an aspect that evaluates all tests between two effects, before and after, where the result of before can be used in after.
Constructs an aspect that evaluates all tests between two effects, before and after, where the result of before can be used in after.
Attributes
- Source
- TestAspect.scala
Constructs an aspect that evaluates every test inside the context of the scoped function.
Constructs an aspect that evaluates every test inside the context of the scoped function.
Attributes
- Source
- TestAspect.scala
Constructs an aspect that evaluates every test between two effects, before and after, where the result of before can be used in after.
Constructs an aspect that evaluates every test between two effects, before and after, where the result of before can be used in after.
Attributes
- Source
- TestAspect.scala
Constructs a simple monomorphic aspect that only works with the specified environment and error type.
Constructs a simple monomorphic aspect that only works with the specified environment and error type.
Attributes
- Source
- TestAspect.scala
Constructs an aspect that runs the specified effect before every test.
Constructs an aspect that runs the specified effect before every test.
Attributes
- Source
- TestAspect.scala
Constructs an aspect that runs the specified effect a single time before all tests.
Constructs an aspect that runs the specified effect a single time before all tests.
Attributes
- Source
- TestAspect.scala
An aspect that applies the provided zio aspect to each sample of all checks in the test.
An aspect that applies the provided zio aspect to each sample of all checks in the test.
i.e.
test("example") {
check(Gen.int) { i =>
ZIO.succeed(assert(i, Assertion.equalTo(1)))
}
} @@ checks(ZIOAspect.debug)
is equivalent to
test("example") {
check(Gen.int) { i =>
ZIO.succeed(assert(i, Assertion.equalTo(1))) @@ ZIOAspect.debug
}
}
Attributes
- Source
- TestAspect.scala
An aspect that applies the provided zio aspect to each sample of all checks in the test. The aspect will be constructed from the provided effect before each test is run.
An aspect that applies the provided zio aspect to each sample of all checks in the test. The aspect will be constructed from the provided effect before each test is run.
Attributes
- Source
- TestAspect.scala
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.
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.
Attributes
- Source
- TestAspect.scala
An aspect that that applies an aspect on all platforms except ScalaJS.
An aspect that that applies an aspect on all platforms except ScalaJS.
Attributes
- Source
- TestAspect.scala
An aspect that that applies an aspect on all platforms except the JVM.
An aspect that that applies an aspect on all platforms except the JVM.
Attributes
- Source
- TestAspect.scala
An aspect that that applies an aspect on all platforms except ScalaNative.
An aspect that that applies an aspect on all platforms except ScalaNative.
Attributes
- Source
- TestAspect.scala
An aspect that sets suites to the specified execution strategy, but only if their current strategy is inherited (undefined).
An aspect that sets suites to the specified execution strategy, but only if their current strategy is inherited (undefined).
Attributes
- Source
- TestAspect.scala
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 with a
RuntimeExceptionif the test passes. - Re-raise failures that don't satisfy the provided assertion.
Attributes
- Source
- TestAspect.scala
An aspect that retries a test until success, with the specified limit, for use with flaky tests.
An aspect that retries a test until success, with the specified limit, for use with flaky tests.
Attributes
- Source
- TestAspect.scala
An aspect that provides each test with the specified layer that does not produce any services.
An aspect that provides each test with the specified layer that does not produce any services.
Attributes
- Source
- TestAspect.scala
An aspect that provides all tests with a shared version of the specified layer that does not produce any services.
An aspect that provides all tests with a shared version of the specified layer that does not produce any services.
Attributes
- Source
- TestAspect.scala
As aspect that runs each test with the specified ZIOAspect.
An aspect that only runs a test if the specified environment variable satisfies the specified assertion.
An aspect that only runs a test if the specified environment variable satisfies the specified assertion.
Attributes
- Source
- TestAspect.scala
An aspect that only runs a test if the specified environment variable is not set.
An aspect that only runs a test if the specified environment variable is not set.
Attributes
- Source
- TestAspect.scala
An aspect that only runs a test if the specified optional environment variable satisfies the specified assertion.
An aspect that only runs a test if the specified optional environment variable satisfies the specified assertion.
Attributes
- Source
- TestAspect.scala
An aspect that only runs a test if the specified environment variable is set.
An aspect that only runs a test if the specified environment variable is set.
Attributes
- Source
- TestAspect.scala
An aspect that only runs a test if the specified Java property satisfies the specified assertion.
An aspect that only runs a test if the specified Java property satisfies the specified assertion.
Attributes
- Source
- TestAspect.scala
An aspect that only runs a test if the specified Java property is not set.
An aspect that only runs a test if the specified Java property is not set.
Attributes
- Source
- TestAspect.scala
An aspect that only runs a test if the specified optional Java property satisfies the specified assertion.
An aspect that only runs a test if the specified optional Java property satisfies the specified assertion.
Attributes
- Source
- TestAspect.scala
An aspect that only runs a test if the specified Java property is set.
An aspect that only runs a test if the specified Java property is set.
Attributes
- Source
- TestAspect.scala
An aspect that applies the specified aspect on ScalaJS.
An aspect that applies the specified aspect on the JVM.
An aspect that applies the specified aspect on ScalaNative.
An aspect that repeats the test a specified number of times, ensuring it is stable ("non-flaky"). Stops at the first failure.
An aspect that repeats the test a specified number of times, ensuring it is stable ("non-flaky"). Stops at the first failure.
Attributes
- Source
- TestAspect.scala
Constructs an aspect that requires a test to not terminate within the specified time.
Constructs an aspect that requires a test to not terminate within the specified time.
Attributes
- Source
- TestAspect.scala
An aspect that runs only on operating systems accepted by the specified predicate.
An aspect that runs only on operating systems accepted by the specified predicate.
Attributes
- Source
- TestAspect.scala
An aspect that executes the members of a suite in parallel, up to the specified number of concurrent fibers.
An aspect that executes the members of a suite in parallel, up to the specified number of concurrent fibers.
Attributes
- Source
- TestAspect.scala
An aspect that repeats successful tests according to a schedule.
An aspect that runs each test with the number of times to repeat tests to ensure they are stable set to the specified value.
An aspect that runs each test with the number of times to repeat tests to ensure they are stable set to the specified value.
Attributes
- Source
- TestAspect.scala
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.
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.
Attributes
- Source
- TestAspect.scala
An aspect that runs each test with the number of times to retry flaky tests set to the specified value.
An aspect that runs each test with the number of times to retry flaky tests set to the specified value.
Attributes
- Source
- TestAspect.scala
An aspect that retries failed tests according to a schedule.
An aspect that runs each test with the number of sufficient samples to check for a random variable set to the specified value.
An aspect that runs each test with the number of sufficient samples to check for a random variable set to the specified value.
Attributes
- Source
- TestAspect.scala
An aspect that applies the specified aspect on Scala 2.
An aspect that applies the specified aspect on Scala 2.12.
An aspect that applies the specified aspect on Scala 2.13.
An aspect that applies the specified aspect on Scala 3.
Sets the seed of the TestRandom instance in the environment to the specified value before each test.
Sets the seed of the TestRandom instance in the environment to the specified value before each test.
Attributes
- Source
- TestAspect.scala
An aspect that runs each test with the maximum number of shrinkings to minimize large failures set to the specified value.
An aspect that runs each test with the maximum number of shrinkings to minimize large failures set to the specified value.
Attributes
- Source
- TestAspect.scala
An aspect that runs each test with the size set to the specified value.
An aspect that runs each test with the size set to the specified value.
Attributes
- Source
- TestAspect.scala
Annotates tests with string tags.
An aspect that times out tests using the specified duration.
An aspect that times out tests using the specified duration.
Value parameters
- duration
-
maximum test duration
Attributes
- Source
- TestAspect.scala
Verifies the specified post-condition after each test is run.
An aspect that runs tests with the specified config provider.
Deprecated methods
An aspect that runs each test with the size set to the specified value.
An aspect that runs each test with the size set to the specified value.
Attributes
- Deprecated
-
[Since version 2.0.2]use size - Source
- TestAspect.scala
Inherited methods
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.
Attributes
- Inherited from:
- TimeoutVariants
- Source
- TimeoutVariants.scala
Concrete fields
An aspect that runs each test on the blocking threadpool. Useful for tests that contain blocking code
An aspect that runs each test on the blocking threadpool. Useful for tests that contain blocking code
Attributes
- Source
- TestAspect.scala
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.
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.
Attributes
- Source
- TestAspect.scala
An aspect that retries a test until success, without limit.
An aspect that runs tests on all platforms except ScalaJS.
An aspect that runs tests on all platforms except the JVM.
An aspect that runs tests on all platforms except ScalaNative.
An aspect that runs tests on all versions except Scala 2.
An aspect that runs tests on all versions except Scala 2.12.
An aspect that runs tests on all versions except Scala 2.13.
An aspect that runs tests on all versions except Scala 3.
An aspect that makes a test that failed for any reason pass. Note that if the test passes, this aspect will make it fail instead.
An aspect that makes a test that failed for any reason pass. Note that if the test passes, this aspect will make it fail instead.
Attributes
- Source
- TestAspect.scala
An aspect that retries a test until success, with a default limit, for use with flaky tests.
An aspect that retries a test until success, with a default limit, for use with flaky tests.
Attributes
- Source
- TestAspect.scala
An aspect that runs each test on its own separate fiber.
An aspect that returns the tests unchanged
An aspect that marks tests as ignored.
An aspect that only runs tests on ScalaJS.
An aspect that only runs tests on the JVM.
Runs only on Mac operating systems.
An aspect that only runs tests on ScalaNative.
An aspect that repeats the test a default number of times, ensuring it is stable ("non-flaky"). Stops at the first failure.
An aspect that repeats the test a default number of times, ensuring it is stable ("non-flaky"). Stops at the first failure.
Attributes
- Source
- TestAspect.scala
Sets the seed of the TestRandom instance in the environment to a random value before each test.
Sets the seed of the TestRandom instance in the environment to a random value before each test.
Attributes
- Source
- TestAspect.scala
An aspect that executes the members of a suite in parallel.
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.
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.
Attributes
- Source
- TestAspect.scala
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.
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.
Attributes
- Source
- TestAspect.scala
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.
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.
Attributes
- Source
- TestAspect.scala
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.
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.
Attributes
- Source
- TestAspect.scala
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.
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.
Attributes
- Source
- TestAspect.scala
An aspect that only runs tests on Scala 2.12.
An aspect that only runs tests on Scala 2.13.
An aspect that only runs tests on Scala 2.
An aspect that only runs tests on Scala 3.
An aspect that executes the members of a suite sequentially.
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.
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.
Attributes
- Source
- TestAspect.scala
As aspect that runs each test with the default console logger removed so that logs are only written to the output buffer and not rendered to standard output.
As aspect that runs each test with the default console logger removed so that logs are only written to the output buffer and not rendered to standard output.
Attributes
- Source
- TestAspect.scala
An aspect that converts ignored tests into test failures.
Annotates tests with their execution times.
Runs only on Unix / Linux operating systems.
Runs only on Windows operating systems.
An aspect that runs tests with the live clock service.
An aspect that runs tests with the live console service.
An aspect that runs tests with the live default ZIO services.
An aspect that runs tests with the live random service.
An aspect that runs tests with the live system service.
Deprecated fields
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.
'''NOTE''': Since this aspect is required for the proper functioning of TestClock.adjust, it is applied to all tests automatically. There is no need to apply this aspect manually to tests.
Attributes
- Deprecated
-
[Since version 2.1.20]This aspect is applied automatically to all tests and no longer needs to be provided explicitly - Source
- TestAspect.scala