testing.Quorum

Creates a test runner that runs the body `n` times and passes when at least `m` of those runs passed.

Reference version

Signature

function testing.Quorum(n: int, m: int) -> testing.TestRunner

Creates a test runner that runs the body n times and passes when at least m of those runs passed.

Every one of the n runs happens, even once m passes are in hand.

Parameters

  • n: how many times to run the body. Must be positive.
  • m: how many of those runs must pass. Must be in [0, n].

Panics

  • baml.panics.UserPanic if n <= 0, or m is outside [0, n].

Source:<builtin>/testing/runners.bamlbytes 4311377