CPAN::Reporter::Config - Config file options for CPAN::Reporter


CPAN-Reporter documentation  | view source Contained in the CPAN-Reporter distribution.

Index


NAME

Top

CPAN::Reporter::Config - Config file options for CPAN::Reporter

VERSION

Top

version 1.1902

SYNOPSIS

Top

From the CPAN shell:

  cpan> o conf init test_report

DESCRIPTION

Top

Default options for CPAN::Reporter are read from a configuration file .cpanreporter/config.ini in the user's home directory.

The configuration file is in "ini" format, with the option name and value separated by an "=" sign

   email_from = "John Doe" <johndoe@nowhere.org>
   edit_report = no

Interactive configuration of email address, mail server and common action prompts may be repeated at any time from the CPAN shell.

  cpan> o conf init test_report

If a configuration file does not exist, it will be created the first time interactive configuration is performed.

Subsequent interactive configuration will also include any advanced options that have been added manually to the configuration file.

INTERACTIVE CONFIGURATION OPTIONS

Top

Email Address (required)

CPAN::Reporter requires users to provide an email address that will be used in the "From" header of the email to cpan-testers@perl.org.

  user@domain
  John Doe <user@domain>
  "John Q. Public" <user@domain>

Because cpan-testers uses a mailing list to collect test reports, it is helpful if the email address provided is subscribed to the list. Otherwise, test reports will be held until manually reviewed and approved.

Subscribing an account to the cpan-testers list is as easy as sending a blank email to cpan-testers-subscribe@perl.org and replying to the confirmation email.

Mail Server

By default, Test::Reporter attempts to send mail directly to perl.org mail servers. This may fail if a user's computer is behind a network firewall that blocks outbound email. In this case, the following option should be set to the outbound mail server (i.e., SMTP server) as provided by the user's Internet service provider (ISP):

In at least one reported case, an ISP's outbound mail servers also refused to forward mail unless the email_from was from the ISP-given email address.

Action Prompts

Several steps in the generation of a test report are optional. Configuration options control whether an action should be taken automatically or whether CPAN::Reporter should prompt the user for the action to take. The action to take may be different for each report grade.

Valid actions, and their associated meaning, are as follows:

For "ask" prompts, the default will be used if return is pressed immediately at the prompt or if the PERL_MM_USE_DEFAULT environment variable is set to a true value.

Action prompt options take one or more space-separated "grade:action" pairs, which are processed left to right.

  edit_report = fail:ask/yes pass:no

An action by itself is taken as a default to be used for any grade which does not have a grade-specific action. A default action may also be set by using the word "default" in place of a grade.

  edit_report = ask/no
  edit_report = default:ask/no

A grade by itself is taken to have the action "yes" for that grade.

  edit_report = default:no fail

Multiple grades may be specified together by separating them with a slash.

  edit_report = pass:no fail/na/unknown:ask/yes

The action prompt options included in interactive configuration are:

Note that if send_report is set to "no", CPAN::Reporter will still go through the motions of preparing a report, but will discard it rather than send it.

A better way to disable CPAN::Reporter temporarily is with the CPAN option test_report:

  cpan> o conf test_report 0

ADVANCED CONFIGURATION OPTIONS

Top

These additional options are only necessary in special cases, for example if the default editor cannot be found or if reports shouldn't be sent in certain situations or for automated testing, and so on.

If these options are manually added to the configuration file, they will be included (and preserved) in subsequent interactive configuration.

Skipfile regular expressions

Skip files are expected to have one regular expression per line and will be matched against the distribution ID, composed of the author's CPAN ID and the distribution tarball name.

     DAGOLDEN/CPAN-Reporter-1.00.tar.gz

Lines that begin with a sharp (#) are considered comments and will not be matched. All regular expressionss will be matched case insensitive and will not be anchored unless you provide one.

As the format of a distribution ID is "AUTHOR/tarball", anchoring at the start of the line with a caret (^) will match the author and with a slash (/) will match the distribution.

     # any distributions by JOHNDOE
     ^JOHNDOE
     # any distributions starting with Win32
     /Win32
     # a particular very specific distribution
     ^JOHNDOE/Foo-Bar-3.14

Transport options

The Test::Reporter 1.39_XX development series added support for multiple transport modules, e.g. Test::Reporter::Transport::Net::SMTP::TLS or Test::Reporter::Transport::HTTPGateway. To use them with CPAN::Reporter, set the 'transport' config option to the name of the transport module (without the 'Test::Reporter::Transport' prefix) and any required arguments, separated by white space. For example:

   transport=Net::SMTP Port 587
   transport=Net::SMTP::TLS User jdoe@example.com Password 12345
   transport=HTTPGateway http://example.com/cpantesters.cgi MyKey
   transport=File ~/saved-reports-dir

The transport module may be any Test::Reporter::Transport installed on your system. As of Test::Reporter 1.39_05, transports included 'Net::SMTP', 'Net::SMTP::TLS', 'Mail::Send', 'HTTPGateway' and 'File'.

CONFIGURATION OPTIONS FOR DEBUGGING

Top

These options are useful for debugging only:

ENVIRONMENT

Top

The following environment variables may be set to alter the default locations for CPAN::Reporter files:

SEE ALSO

Top

AUTHOR

Top

David A. Golden (DAGOLDEN)

COPYRIGHT AND LICENSE

Top

AUTHOR

Top

David Golden <dagolden@cpan.org>

COPYRIGHT AND LICENSE

Top


CPAN-Reporter documentation  | view source Contained in the CPAN-Reporter distribution.