TestAspect

zio.test.TestAspect
See theTestAspect companion object
abstract class TestAspect[+LowerR, -UpperR, +LowerE, -UpperE]

A TestAspect is an aspect that can be weaved into specs. You can think of an aspect as a polymorphic function, capable of transforming one test into another, possibly enlarging the environment or error type.

Attributes

Companion
object
Source
TestAspect.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class PerTest[LowerR, UpperR, LowerE, UpperE]
Self type
TestAspect[LowerR, UpperR, LowerE, UpperE]

Members list

Value members

Abstract methods

def some[R >: LowerR <: UpperR, E >: LowerE <: UpperE](spec: Spec[R, E])(implicit trace: Trace): Spec[R, E]

Applies the aspect to some tests in the spec, chosen by the provided predicate.

Applies the aspect to some tests in the spec, chosen by the provided predicate.

Attributes

Source
TestAspect.scala

Concrete methods

final def >>>[LowerR1 >: LowerR, UpperR1 <: UpperR, LowerE1 >: LowerE, UpperE1 <: UpperE](that: TestAspect[LowerR1, UpperR1, LowerE1, UpperE1]): TestAspect[LowerR1, UpperR1, LowerE1, UpperE1]

Returns a new aspect that represents the sequential composition of this aspect with the specified one.

Returns a new aspect that represents the sequential composition of this aspect with the specified one.

Attributes

Source
TestAspect.scala
final def @@[LowerR1 >: LowerR, UpperR1 <: UpperR, LowerE1 >: LowerE, UpperE1 <: UpperE](that: TestAspect[LowerR1, UpperR1, LowerE1, UpperE1]): TestAspect[LowerR1, UpperR1, LowerE1, UpperE1]

Returns a new aspect that represents the sequential composition of this aspect with the specified one.

Returns a new aspect that represents the sequential composition of this aspect with the specified one.

Attributes

Source
TestAspect.scala
final def all[R >: LowerR <: UpperR, E >: LowerE <: UpperE](spec: Spec[R, E])(implicit trace: Trace): Spec[R, E]

Applies the aspect to every test in the spec.

Applies the aspect to every test in the spec.

Attributes

Source
TestAspect.scala
final def andThen[LowerR1 >: LowerR, UpperR1 <: UpperR, LowerE1 >: LowerE, UpperE1 <: UpperE](that: TestAspect[LowerR1, UpperR1, LowerE1, UpperE1]): TestAspect[LowerR1, UpperR1, LowerE1, UpperE1]

Attributes

Source
TestAspect.scala
final def apply[R >: LowerR <: UpperR, E >: LowerE <: UpperE](spec: Spec[R, E])(implicit trace: Trace): Spec[R, E]

An alias for all.

An alias for all.

Attributes

Source
TestAspect.scala