NAME

quicktest - Run prove repeatedly until failure.

SYNOPSIS

quicktest [options] [--max-runs N] <file_or_folder>

quicktest -lv t/
quicktest -lr t/
quicktest --max-runs 100 -lr t/

DESCRIPTION

quicktest repeatedly runs tests using prove until a failure occurs or an optional maximum number of runs is reached.

It is useful for detecting intermittent (flaky) test failures.

OPTIONS

--max-runs N, -n N

Stop after running the test suite N times, even if no failures occur.

If not provided, tests will run indefinitely until a failure happens.

prove options

All other options are passed directly to prove. See prove for full details.

ENVIRONMENT

PERL_RAND_SEED

If set, this seed will be reused for every run. Otherwise, a new random seed is generated for each run and passed to child processes.

EXAMPLES

Run tests until failure:

quicktest -l t/

Run up to 50 times:

quicktest --max-runs 50 -l t/

Run tests with a failed seed:

PERL_RAND_SEED=1234 prove -l t/

AUTHOR

Antonis Kalou <kalouantonis@protonmail.com>