David Golden > Test-Reporter-1.59 > Test::Reporter

Download:
Test-Reporter-1.59.tar.gz

Dependencies

Annotate this POD

Website

Related Modules

CPAN::Reporter
Module::Build
XML::Twig
Data::Dumper
Test::Pod
Mail::Send
Mail::Mailer
IO::Stringy
Net::SMTP
IO::String
more...
By perlmonks.org

CPAN RT

New  4
Open  1
View/Report Bugs
Module Version: 1.59   Source   Latest Release: Test-Reporter-1.60

NAME ^

Test::Reporter - sends test results to cpan-testers@perl.org

VERSION ^

version 1.59

SYNOPSIS ^

  use Test::Reporter;

  my $reporter = Test::Reporter->new(
      transport => 'File',
      transport_args => [ dir => '/tmp' ],
  );

  $reporter->grade('pass');
  $reporter->distribution('Mail-Freshmeat-1.20');
  $reporter->send() || die $reporter->errstr();

  # or

  my $reporter = Test::Reporter->new(
      transport => 'File',
      transport_args => [ dir => '/tmp' ],
  );

  $reporter->grade('fail');
  $reporter->distribution('Mail-Freshmeat-1.20');
  $reporter->comments('output of a failed make test goes here...');
  $reporter->edit_comments(); # if you want to edit comments in an editor
  $reporter->send() || die $reporter->errstr();

  # or

  my $reporter = Test::Reporter->new(
      transport => 'File',
      transport_args => [ dir => '/tmp' ],
      grade => 'fail',
      distribution => 'Mail-Freshmeat-1.20',
      from => 'whoever@wherever.net (Whoever Wherever)',
      comments => 'output of a failed make test goes here...',
      via => 'CPANPLUS X.Y.Z',
  );
  $reporter->send() || die $reporter->errstr();

DESCRIPTION ^

Test::Reporter reports the test results of any given distribution to the CPAN Testers project. Test::Reporter has wide support for various perl5's and platforms.

CPAN Testers no longer receives test reports by email, but reports still resemble an email message. This module has numerous legacy "features" left over from the days of email transport.

Transport mechanism

The choice of transport is set with the transport argument. CPAN Testers should usually install Test::Reporter::Transport::Metabase and use 'Metabase' as the transport. See that module for necessary transport arguments. Advanced testers may wish to test on a machine different from the one used to send reports. Consult the CPAN Testers Wiki for examples using other transport classes.

The legacy email-based transports have been split out into a separate Test::Reporter::Transport::Legacy distribution and methods solely related to email have been deprecated.

ATTRIBUTES ^

Required attributes

Transport attributes

Optional attributes

Deprecated attributes

CPAN Testers no longer uses email for submitting reports. These attributes are deprecated.

METHODS ^

Deprecated methods

CAVEATS ^

If you experience a long delay sending reports with Test::Reporter, you may be experiencing a wait as Test::Reporter attempts to determine your email address. Always use the from parameter to set your email address explicitly.

SEE ALSO ^

For more about CPAN Testers:

SUPPORT ^

Bugs / Feature Requests

Please report any bugs or feature requests through the issue tracker at https://rt.cpan.org/Public/Dist/Display.html?Name=Test-Reporter. You will be notified automatically of any progress on your issue.

Source Code

This is open source software. The code repository is available for public review and contribution under the terms of the license.

https://github.com/dagolden/test-reporter

  git clone git://github.com/dagolden/test-reporter.git

AUTHORS ^

CONTRIBUTOR ^

Vincent Pit <perl@profvince.com>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by Authors and Contributors.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: