Test::Able::Runner::Role::Meta::Class - metaclass role for test runners
version 1.002
This class provides the real guts for loading the test objects to run. However, you probably don't need to use it directly unless you are doing something fancy. See Test::Able::Runner for the usual cases.
This is set by the -base_package option sent to use_test_packages. A has_base_package predicate will tell you if this has been set.
-base_package
use_test_packages
has_base_package
This is set by the -test_packages option sent to use_test_packages. A has_test_packages predicate will tell you if this has been set.
-test_packages
has_test_packages
This is set by teh -test_path option sent to use_test_packages.
-test_path
This returns all the packages that will be loaded for testing. This does not filter classes out that have $NOT_A_TEST set.
$NOT_A_TEST
This will search for test classes if "base_package" has been set or it return the contents of "test_packages".
This method returns all the test objects that should be run by this runner. It works by doing the following:
It retrieves a list of potential test classes using "test_classes".
It checks each package and throws away those with a package global variable named $NOT_A_TEST that has been set to a true value.
It instantiates the test classes and returns an arrayref of those test objects.
Calls "build_test_objects" and sets the test_objects accessor from Test::Able::Role::Meta::Class.
test_objects
Andrew Sterling Hanenkamp <hanenkamp@cpan.org>
<hanenkamp@cpan.org>
Copyright 2010 Qubling Software LLC.
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
To install Test::Able::Runner, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Able::Runner
CPAN shell
perl -MCPAN -e shell install Test::Able::Runner
For more information on module installation, please visit the detailed CPAN module installation guide.