Test::Class::Moose::Config - Configuration information for Test::Class::Moose
version 0.43
my $tc_config = Test::Class::Moose::Config->new({ show_timing => 1, builder => Test::Builder->new, statistics => 1, randomize => 0, }); my $test_suite = Test::Class::Moose->new($tc_config);
For internal use only (maybe I'll expose it later). Not guaranteed to be stable.
This class defines many of the attributes for Test::Class::Moose. They're kept here to minimize namespace pollution in Test::Class::Moose.
show_timing
Boolean. Will display verbose information on the amount of time it takes each test class/test method to run.
statistics
Boolean. Will display number of classes, test methods and tests run.
use_environment
Boolean. Sets show_timing and statistics to true if your test harness is running verbosely, false otherwise.
test_classes
Takes a class name or an array reference of class names. If it is present, the test_classes method will only return these classes. This is very useful if you wish to run an individual class as a test:
Test::Class::Moose->new( test_classes => $ENV{TEST_CLASS}, # ignored if undef )->runtests;
include_tags
Array ref of strings matching method tags (a single string is also ok). If present, only test methods whose tags match include_tags or whose tags don't match exclude_tags will be included. However, they must still start with test_.
exclude_tags
test_
For example:
my $test_suite = Test::Class::Moose->new({ include_tags => [qw/api database/], });
The above constructor will only run tests tagged with api or database.
api
database
The same as include_tags, but will exclude the tests rather than include them. For example, if your network is down:
my $test_suite = Test::Class::Moose->new({ exclude_tags => [ 'network' ], }); # or my $test_suite = Test::Class::Moose->new({ exclude_tags => 'network', });
builder
Usually defaults to Test::Builder->new, but you could substitute your own if it conforms to the interface.
Test::Builder->new
randomize
Boolean. Will run tests in a random order.
jobs
EXPERIMENTAL: Returns the number of jobs running for the test suite. Default is 1.
Only used by Test::Class::Moose::Role::Parallel.
Test::Class::Moose::Role::Parallel
running_in_parallel
EXPERIMENTAL: Returns true if it appears that we are running in parallel.
args
my $tests = Some::Test::Class->new($test_suite->test_configuration->args);
Returns a hash reference of the args used to build the configuration. Used in testing. You probably won't need it.
Please report any bugs or feature requests to bug-test-class-moose at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Class-Moose. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-test-class-moose at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Test::Class::Moose
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Test-Class-Moose
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Test-Class-Moose
CPAN Ratings
http://cpanratings.perl.org/d/Test-Class-Moose
Search CPAN
http://search.cpan.org/dist/Test-Class-Moose/
Curtis "Ovid" Poe <ovid@cpan.org>
This software is copyright (c) 2014 by Curtis "Ovid" Poe.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Test::Class::Moose, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Class::Moose
CPAN shell
perl -MCPAN -e shell install Test::Class::Moose
For more information on module installation, please visit the detailed CPAN module installation guide.