run_tests
# as a class method
$class->run_tests();
$class->run_tests($description);
$class->run_tests($init_args);
$class->run_tests($description $init_args);
# as an object method
$self->run_tests();
$self->run_tests($description);
If called as a class method, this creates a test object using an optional hash reference of
initialization arguments.
When called as an object method, or after an object has been generated, this method sets an optional
description and runs tests. It will call the "setup" method (triggering any method modifiers), will run
all tests (triggering any method modifiers on "each_test") and will call the "teardown" method
(triggering any method modifiers).
If a description is provided, it will override any initialized or generated "description" attribute.
The setup, tests and teardown will be executed in a Test::More subtest block.
setup
This is an empty method used to anchor method modifiers. It should not be overridden by subclasses.
each_test
This method wraps the code references set by the "test" function from Test::Roo or Test::Roo::Role in a
Test::More subtest block.
It may also be used to anchor modifiers that should run before or after each test block, though this can
lead to brittle design as modifiers will globally affect every test block, including composed ones.
teardown
This is an empty method used to anchor method modifiers. It should not be overridden by subclasses.