testing.Retry

Creates a test runner that retries a test up to `max_attempts` times. Tests fail if there are no passes after `max_attempts` attempts.

Reference version

Signature

function testing.Retry(max_attempts: int) -> testing.TestRunner

Creates a test runner that retries a test up to max_attempts times. Tests fail if there are no passes after max_attempts attempts.

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