
Test::Mini::Runner - Default Test Runner

The Test::Mini::Runner is responsible for finding and running the appropriate tests, setting up output logging, and returning an appropriate status code. For those looking to write tests with this framework, the points of note are as follows:
/^test.+/ will be run.
`prove`,
by loading (via use,
do or require) the files into another script,
or by simply executing a file containing a test case in the Perl interpreter.
`prove` is not an option.verbose - Specifies the logger's verbosity.filter - Only tests with names matching this pattern should be run.logger - Specifies an alternate output logger class.seed - Specifies a random number seed; used to specify repeatable test orderings.
exit_code($self)
Exit code, representing the status of the test run.
Returns:
filter($self)
Test name filter.
Returns:
logger($self)
Logger instance.
Returns:
seed($self)
Randomness seed.
Returns:
verbose($self)
Logger verbosity.
Returns:
run($self)
Begins the test run. Loads and instantiates the test output logger, then dispatches to #run_test_suite (passing the #filter and #seed, as appropriate).
Returns:
run_test($self, $tc, $test) # => Integer
Runs a specific test.
Parameters:
$tc -- The test case owning the test method.$test -- The name of the test method to be run.Returns:
run_test_case($self, $tc, @tests)
Runs tests in a test case.
Parameters:
$tc -- The test case to run.@tests -- A list of tests to be run.run_test_suite($self, %args)
Runs the test suite. Finds subclasses of Test::Mini::TestCase, and dispatches to #run_test_case with the name of each test case and a list test methods to be run.
Parameters:
%argsValid Options for %args:
Returns:
error($self, $tc, $test, $e)
Callback for dying tests.
Parameters:
$tc -- The test case owning the test method.$test -- The name of the test with an error.$e -- The exception object.fail($self, $tc, $test, $e)
Callback for failing tests.
Parameters:
$tc -- The test case owning the test method.$test -- The name of the failed test.$e -- The exception object.pass($self, $tc, $test)
Callback for passing tests.
Parameters:
$tc -- The test case owning the test method.$test -- The name of the passing test.skip($self, $tc, $test, $e)
Callback for skipped tests.
Parameters:
$tc -- The test case owning the test method.$test -- The name of the skipped test.$e -- The exception object.new($class, %args)
Constructor. Arguments may be provided explicitly to the constructor or implicitly via either @ARGV (parsed by Getopt::Long) or environment variables ("TEST_MINI_$option").
Parameters:
%args -- Initial state for the new instance.Valid Options for %args:
0.''.Test::Mini::Logger::TAP.< 64_000_000 .