TestConfig

zio.test.TestConfig
See theTestConfig companion trait
object TestConfig

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
TestConfig.type

Members list

Type members

Classlikes

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

Attributes

Supertypes
trait Product
trait Equals
trait TestConfig
trait Serializable
class Object
trait Matchable
class Any
Show all

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.

Attributes

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.

Attributes

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

The number of times to retry flaky tests.

The number of times to retry flaky tests.

Attributes

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.

Attributes

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

Attributes

Concrete fields

val default: ZLayer[Any, Nothing, TestConfig]

Constructs a new TestConfig with the default settings.

Constructs a new TestConfig with the default settings.

Attributes