TAP::Formatter::BambooExtended - Harness output delegate for Atlassian's Bamboo CI server
On the command line, with prove:
prove --formatter TAP::Formatter::BambooExtended ...
Or, in your own scripts:
use TAP::Harness; my $harness = TAP::Harness->new({ formatter_class => 'TAP::Formatter::BambooExtended', merge => 1, }); $harness->runtests(@tests);
TAP::Formatter::BambooExtended provides JUnit output formatting for TAP::Harness, which can be used in Atlassian's Bamboo CI server or any other CI server that looks for JUnit files.
TAP::Formatter::BambooExtended
TAP::Harness
This module is based on TAP::Formatter::Bamboo by Piotr Piatkowski <pp@idea7.pl>, main differences are:
prove_db
FORMATTER_OUTPUT_DIR
By way of example, when you run a test like this:
prove -l --formatter TAP::Formatter::BambooExtended
You might see these results on the command line:
PASS t/00-load.t ALL DONE
Then you'll see a new directory called $ENV{'FORMATTER_OUTPUT_DIR'}. By default, this directory will be created as prove_db in your current working directory. In the output directory you'll see one file for each test script, like this:
$ENV{'FORMATTER_OUTPUT_DIR'}
> ls t-00-load_t.xml
In that file you will see one test output for the file itself, named after the file. You'll also see one test output for each individual test in the test script. So if your test script has twenty ok statements, you'll have twenty- one tests in Bamboo -- one for the file itself and then one for each ok statement. This makes it easier to track exactly which tests are failing with Bamboo.
ok
Paul Lockaby <plockaby@cpan.org>
Piotr Piatkowski <pp@idea7.pl> (original TAP::Formatter::Bamboo)
TAP::Formatter::Bamboo
Graham TerMarsch <cpan@howlingfrog.com> (original TAP::Formatter::JUnit)
TAP::Formatter::JUnit
This is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
TAP::Formatter::Bamboo, TAP::Formatter::JUnit, TAP::Formatter::Console, http://confluence.atlassian.com/display/BAMBOO/JUnit+parsing+in+Bamboo.
To install TAP::Formatter::BambooExtended, copy and paste the appropriate command in to your terminal.
cpanm
cpanm TAP::Formatter::BambooExtended
CPAN shell
perl -MCPAN -e shell install TAP::Formatter::BambooExtended
For more information on module installation, please visit the detailed CPAN module installation guide.