NAME
Test::Nightly::Test - Make and runs your tests.
DESCRIPTION
Designed to run our tests, and then store the results back into the object.
SYNOPSIS
use Test::Nightly::Test;
my $test = Test::Nightly::Test->new();
$test->run();
The following methods are available:
new()
my $test = Test::Nightly::Test->new({
modules => \@modules, # Required.
test_directory_format => ['t/', 'tests/'], # Optional, defaults to ['t/'].
test_file_format => ['.t', '.pl'], # Optional, defaults to ['.t'].
});
Create a new Test::Nightly::Test object.
C<modules> is an array of the has refs that include the path to the module and the makefile name. It isn't required that you supply this because the directories are found from the Test::Nightly object. You may want to specify these if you are calling this separately.
C<test_directory_format> in an array ref of what the test directories can be. By default it searches for the tests in ['t/'].
C<test_file_format> is an array ref of the file types that your tests are. Defaults to ['.t'].
run()
$test->run({
# ... can take the same arguments as new() ...
});
Loops through the supplied modules, makes those modules and runs their tests.
List of methods:
- modules
-
List of modules. Usually is generated when you call L<Test::Nightly> new method, however it is possible to pass it in directly here. Structure is like so: @modules = ( { 'directory' => '/dir/to/module01/' 'makefile => 'Makefile.PL' }, { 'directory' => '/dir/to/module02/' 'makefile => 'Makefile.PL' }, );
- test_directory_format
-
An array ref of what format the test directories can be. By default it searches for the tests in 't/'.
- test_file_format
-
An array ref of the test file formats you have. e.g. @file_formats = ('.pl', '.t'); Defaults to ['.t'].
- tests
-
Where the output is stored after running the tests.
TODO
Find a way to suppress the output while the tests are running.
AUTHOR
Kirstin Bettiol <kirstinbettiol@gmail.com>
COPYRIGHT
(c) 2005 Kirstin Bettiol This library is free software, you can use it under the same terms as perl itself.
SEE ALSO
Test::Nightly Test::Nightly::Test Test::Nightly::Report Test::Nightly::Email Test::Nightly::Version Test::Nightly::Coverage perl
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 298:
You forgot a '=back' before '=head1'