Syntax for adding aspects.
Syntax for adding aspects.
test("foo") { assert(42, equalTo(42)) } @@ ignore
Returns a new spec with the suite labels distinguished by Left
, and the
test labels distinguished by Right
.
Determines if any node in the spec is satisfied by the given predicate.
Returns a new Spec containing only tests/suites with labels satisfying the specified predicate.
Returns a new Spec containing only tests with labels satisfying the specified predicate.
Folds over all nodes to produce a final result.
Effectfully folds over all nodes according to the execution strategy of suites, utilizing the specified default for other cases.
Determines if all node in the spec are satisfied by the given predicate.
Iterates over the spec with the sequential strategy as the default, and effectfully transforming every test with the provided function, finally reconstructing the spec with the same structure.
Iterates over the spec with the specified default execution strategy, and effectfully transforming every test with the provided function, finally reconstructing the spec with the same structure.
Iterates over the spec with the parallel strategy as the default, and effectfully transforming every test with the provided function, finally reconstructing the spec with the same structure.
Iterates over the spec with the parallel (n
) strategy as the default, and
effectfully transforming every test with the provided function, finally
reconstructing the spec with the same structure.
Returns a new spec with remapped labels.
Returns a new spec with remapped tests.
Uses the specified Managed
to provide each test in this spec with its
required environment.
Uses the specified Managed
once to provide all tests in this spec with
a shared version of their required environment.
Uses the specified Managed
once to provide all tests in this spec with
a shared version of their required environment. This is useful when the
act of creating the environment is expensive and should only be performed
once.
Computes the size of the spec, i.e.
Computes the size of the spec, i.e. the number of tests in the spec.
Transforms the spec one layer at a time.
Transforms the spec statefully, one layer at a time.
A
Spec[R, E, L, T]
is the backbone of _ZIO Test_. Every spec is either a suite, which contains other specs, or a test of typeT
. All specs are annotated with labels of typeL
, require an environment of typeR
and may potentially fail with an error of typeE
.