NAME
Test::Smoke::Metabase - Test::Smoke Metabase interface object
SYNOPSIS
my $report = Test::Smoke::Metabase->open (
resource => "http://perl5.git.perl.org/perl.git/8c576062",
);
$report->add (Test::Smoke::Fact::SmokeID => {
git_id => "8c57606294f48eb065dff03f7ffefc1e4e2cdce4",
perl_id => "5.12.2-RC4",
hostname => "smokebox",
architecture => "pa_risc-2.0",
osname => "HP-UX",
osversion => "11.31",
cc => "cc",
ccversion => "B3910B",
parallel => 1,
user => "tux",
smoke_date => "20100528",
});
$report->add (Test::Smoke::Fact::TestEnvironment => {
PERL5LIB => $ENV{PERL5LIB},
LC_ALL => $ENV{LC_ALL},
LANG => $ENV{LANG},
});
$report->add (Test::Smoke::Fact::SmokeConfig =>
"-Duse64bitall -DDEBUGGING"
);
$report->add (Test::Smoke::Fact::TestResult => {
io_env => "perlio",
output => $output,
summary => "F",
});
$report->close ();
$report->send ({
uri => "http://metabase.example.com:3000/",
id_file => "/home/tux/smoke/metabase_id.json",
});
DESCRIPTION
Metabase report class encapsulating Facts about a Test::Smoke report
This describes the interface of sending Test::Smoke reports to the CPANTESTERS-2.0 infrastructure. This interface describes what facts are stored and how they relate to a complete report.
SmokeID
These facts identify a smoke. With this ID, one should be able to find all other facts that belong to a single smoke run. A more detailed description can be found in Test::Smoke::Fact::SmokeID.
TestEnvironment
This is optional. It can describe what environment variable that could possibly influence a smoke run where set on the start of this smoke. Not all are relevant, as Test::Smoke itself will set/reset the ones it knows to be relevant. A more detailed description can be found in Test::Smoke::Fact::TestEnvironment.
SmokeConfig
For each configuration smoked in a full smoke run, this describes the configuration for the TestResult (if available). A more detailed description can be found in Test::Smoke::Fact::SmokeConfig.
TestResult
These are the results for a finished configuration. It will hold as much information as possible. A more detailed description can be found in Test::Smoke::Fact::TestResult.
send
Will send the report using Test::Smoke::Metabase::Transport
SEE ALSO
Test::Smoke, Test::Smoke::Fact::SmokeID, Test::Smoke::Fact::TestEnvironment, Test::Smoke::Fact::SmokeConfig, Test::Smoke::Fact::TestResult, Metabase::Report, Metabase::Fact.
AUTHOR
H.Merijn Brand
COPYRIGHT AND LICENSE
Copyright (c) 2010 by H.Merijn Brand
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.