Parrot::Harness::Smoke - Generate smoke reports
This package exports on request subroutines used by the root t/harness and by language implementation t/harness to generate smoke reports.
The module currently exports three subroutines on demand.
collect_test_environment_data()
%env_data = collect_test_environment_data();
It collects environmental data via:
Analysis of the results of Parrot configuration (%PConfig).
%PConfig
Environmental variables
Analysis of git metadata
git
Application of CPAN modules. Mail::Util and Sys::Hostname are used, if available.
You may directly affect Submitter data by setting the following environmental variable(s):
All systems. $ENV{'SMOLDER_SUBMITTER'}.
$ENV{'SMOLDER_SUBMITTER'}
Win32 only. $ENV{'USERNAME'} or $ENV{'LOGNAME'}, plus $ENV{'USERDOMAIN'}.
$ENV{'USERNAME'}
$ENV{'LOGNAME'}
$ENV{'USERDOMAIN'}
send_archive_to_smolder()
send_archive_to_smolder( %env_data );
At the current time, automated smoke reports are collected and displayed via the Smolder system at http://smolder.parrot.org. Such reports require the Perl 5 LWP::UserAgent module, available from CPAN.
On network problem or for offline use you may send tar reports later with that command:
perl -Ilib -MParrot::Harness::Smoke \ -e'Parrot::Harness::Smoke::send_archive_to_smolder(Parrot::Harness::Smoke::collect_test_environment_data())'
generate_html_smoke_report()
This subroutine generates a type of HTML-smoke report formerly collected and displayed on Parrot's smoke server. It has been superseded by Smolder reporting but is still available for other uses.
generate_html_smoke_report ( tests => \@tests, args => $args, file => 'smoke.html', );
This subroutine requires CPAN modules Test::TAP::HTMLMatrix and Test::TAP::Model::Visual.
To install Rakudo::Star, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Rakudo::Star
CPAN shell
perl -MCPAN -e shell install Rakudo::Star
For more information on module installation, please visit the detailed CPAN module installation guide.