NAME

aggit - Test2::Aggregate iterative aggregator

DESCRIPTION

Pass a list of Perl test files/directories and they will run aggregated via yath (or prove if specified). On the first failure, the suite will re-run with the failed test removed. This will be repeated until there are no failed tests.

It is useful for generating a list of tests that can be run aggregated together. It may take a very long time, depending on the number of tests in your suite, so look into the Test2::Aggregate docs for more efficient strategies. Note that it is often the case a passing test might cause several others after it to fail, which is why aggregation failures should be investigated if you want to aggregate a large percentage of your test suite (and also a reason why using the reverse/shuffle/sort options may give you very different results). aggit is just a coarse tool that may help as a starting point.

Ordering options are applied once, then retained across retries and in the final runner. Requires Test2::Plugin::BailOnFail. Harness startup errors and failures after all test files complete abort instead of removing tests. Under prove, there is no event timeout. Under yath, the timeout applies to the generated runner; timeout comments in aggregated files are not processed by the harness.

SYNOPSIS

aggit [options] <file/dir1 ...>

Options:
--out <s>,          -o <s>  : Specify the test file to be created (tmp file by default).
--lists,            -l      : Use files specified as lists.
--prove,            -p      : Force prove (default is yath/Test2 if installed).
--verbose,          -v      : Verbose (passed to yath/prove)
--absolute,         -a      : Use absolute paths in generated files. Disabled with -r.
--exclude_regex <s> -er <s> : Regex for test paths to exclude.
--exclude_list <s>  -el <s> : File with test paths to exclude (one per line).
--event_timeout <i> -et <i> : Event timeout for yath (to determine hung tests). Default 10.
--root <s>          -r <s>  : Define a custom root dir (default is current dir).
--include <s>,      -I <s>  : Library path to include (repeatable).
--test_bundle <s>,  -t      : Test bundle (def: Test2::V0 or Test::More if -p). Comma-separated list.
--reverse                   : Reverse the test order.
--shuffle                   : Shuffle the test order.
--sort                      : Run the tests alphabetically.
--help              -h      : Show basic help and exit.