The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Test::Nightly::Report - Generates a test report.

DESCRIPTION

Generates a report based on the tests that have been run, that can then be emailed to you, or output to a file. You probably should not be dealing with this directly.

SYNOPSIS

  use Test::Nightly::Report;
  
  my $nightly = Test::Nightly::Report->new({
    email_report => {
        to => 'kirstinbettiol@gmail.com',
    }
  });

$report->run();

The following methods are available:

new()

  my $report = Test::Nightly::Report->new({
    email_report    => \%email_config,                # Emails the report. See Test::Nightly::Email for config.
    report_template => '/dir/somewhere/template.txt', # Defaults to internal template.
    report_output   => '/dir/somewhere/output.txt',   # File to output the report to.
    test_report     => 'all',                         # 'failed' || 'passed'. Defaults to all.
  });

Produces a report on the tests that have been run.

Depending on what you pass in, defines what report is generated. If you would like the report emailed to you, pass in email_report. If you would like the report to be logged somewhere, then pass in report_template.

Default template can be seen in Test::Nightly::Report::Template

run()

  $report->run({
    ... takes the same arguments as new ...
  });

Generates the report.

List of methods:

email_report

If set will email the report. Takes a hash ref of \%email_config, refer to Test::Nightly::Email for the options.

report_template

Pass this in if you wish to have your own customised report template. Otherwise, uses the default template is in Test::Nightly::Report::Template

report_output

Set this to a filepath/filename and the report will be outputted here.

test

Output of the test.

test_report

This is where you specify what you wish to report on after the outcome of the test. Specifying 'passed' will only report on tests that passed, specifying 'failed' will only report on tests that failed and specifying 'all' will report on both.

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::Report::Template, perl.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 222:

You forgot a '=back' before '=head1'