TestConfig

object TestConfig
Companion:
class
class Object
trait Matchable
class Any

Type members

Classlikes

final case class Test(repeats: Int, retries: Int, samples: Int, shrinks: Int) extends TestConfig

Value members

Concrete methods

def live(repeats: Int, retries: Int, samples: Int, shrinks: Int)(implicit trace: Trace): ZLayer[Any, Nothing, TestConfig]

Constructs a new TestConfig service with the specified settings.

Constructs a new TestConfig service with the specified settings.

def repeats(implicit trace: Trace): URIO[Any, Int]

The number of times to repeat tests to ensure they are stable.

The number of times to repeat tests to ensure they are stable.

def retries(implicit trace: Trace): URIO[Any, Int]

The number of times to retry flaky tests.

The number of times to retry flaky tests.

def samples(implicit trace: Trace): URIO[Any, Int]

The number of sufficient samples to check for a random variable.

The number of sufficient samples to check for a random variable.

def shrinks(implicit trace: Trace): URIO[Any, Int]

The maximum number of shrinkings to minimize large failures

The maximum number of shrinkings to minimize large failures

Concrete fields

val default: ZLayer[Any, Nothing, TestConfig]

Constructs a new TestConfig with the default settings.

Constructs a new TestConfig with the default settings.