NAME
Test2::Aggregate::Helper - Common functions for Test2::Aggregate helper scripts
SYNOPSIS
See agg and aggit helper scripts.
FUNCTIONS
setup_options(\%opt)
Normalizes command-line options used by the helper scripts. This sets defaults, validates paths and regexes, prepares include/exclude patterns, and falls back to prove when Test2::Harness is unavailable. An exclude_list is resolved to canonical paths (relative entries against root or the current directory).
is_excluded(\%opt, $test)
Returns true if $test (a path to an existing test file) is one of the entries of the exclude_list processed by setup_options.
canonical_path($path)
Returns the absolute path with symlinks and .. resolved where possible.
create_command(\%opt, $file, $args_only)
Builds the prove or yath command used to run the generated aggregate test file. include may be a single path or an array ref of paths. When $args_only is true, only the arguments are returned.
generate_code(\%opt, @paths)
Generates a standalone aggregate test file from normalized helper options and the supplied test files, directories, or list files.