TestConfig

object TestConfig

The TestConfig service provides access to default configuation settings used by ZIO Test, including the number of times to repeat tests to ensure they are stable, the number of times to retry flaky tests, the sufficient number of samples to check from a random variable, and the maximum number of shrinkings to minimize large failures.

class Object
trait Matchable
class Any

Type members

Classlikes

trait Service extends Serializable

Value members

Concrete methods

def live(repeats0: Int, retries0: Int, samples0: Int, shrinks0: Int): ZLayer[Any, Nothing, TestConfig]

Constructs a new TestConfig service with the specified settings.

Constructs a new TestConfig service with the specified settings.

Concrete fields

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

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

The number of times to retry flaky tests.

The number of times to retry flaky tests.

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

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

The maximum number of shrinkings to minimize large failures

The maximum number of shrinkings to minimize large failures