Email Address (required)
email_from = <email address>
CPAN::Reporter requires users to provide an email address that will be used in the header of the report.
The email address provided should be a valid address format, e.g.:
email_from = user@domain
email_from = John Doe <user@domain>
email_from = "John Q. Public" <user@domain>
Transport (required)
transport = <transport class> [transport args]
This sets the transport mechanism passed to the transport() method of Test::Reporter. Normally, CPAN::Reporter uses 'Metabase' for transport class (i.e. Test::Reporter::Transport::Metabase) and will provide a default set of transport arguments.
Metabase transport arguments are two space-separated key/value pairs:
- •
-
"uri" -- URI for the Metabase API. Defaults to "https://metabase.cpantesters.org/api/v1/"
- •
-
"id_file" -- path to the user's Metabase profile file. Defaults to "metabase_id.json". (Assumed to be in the ".cpanreporter" directory).
Prior to sending reports, a user must have a valid profile file at the path specified. For Metabase transport, CPAN::Reporter will automatically rewrite a relative "id_file" path as an absolute path located in the ".cpanreporter" directory.
If the specified profile file does not exist, CPAN::Reporter will offer to run "metabase-profile" to create it.
For other transport types, see the documentation that comes with your choice of Test::Reporter::Transport subclass for the proper way to set the "transport" configuration option.
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. For example, users may wish to customize for which grades they wish to manually review a report before sending it.
Most users should just accept the default settings until they have some experience as CPAN Testers.
Valid actions, and their associated meaning, are as follows:
•
|
"yes" -- automatic yes
|
•
|
"no" -- automatic no
|
•
|
"ask/no" or just "ask" -- ask each time, but default to no
|
•
|
"ask/yes" -- ask each time, but default to yes
|
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:
- •
-
"edit_report = <grade:action> ..." -- edit the test report before sending? (default:ask/no pass/na:no)
- •
-
"send_report = <grade:action> ..." -- should test reports be sent at all? (default:ask/yes pass/na:yes)
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