TAP::Harness::Archive(3pm) | User Contributed Perl Documentation | TAP::Harness::Archive(3pm) |
TAP::Harness::Archive - Create an archive of TAP test results
use TAP::Harness::Archive; my $harness = TAP::Harness::Archive->new(\%args); $harness->runtests(@tests);
This module is a direct subclass of TAP::Harness and behaves in exactly the same way except for one detail. In addition to outputting a running progress of the tests and an ending summary it can also capture all of the raw TAP from the individual test files or streams into an archive file (".tar" or ".tar.gz").
All methods are exactly the same as our base TAP::Harness except for the following.
In addition to the options that TAP::Harness allow to this method, we also allow the following:
Takes the same arguments as TAP::Harness's version and returns the same thing (a TAP::Parser::Aggregator object). The only difference is that in addition to the normal test running and progress output we also create the TAP Archive when it's all done.
This class method will return a TAP::Parser::Aggregator object when given a TAP Archive to open and parse. It's pretty much the reverse of creating a TAP Archive from using "new" and "runtests".
It takes a hash of arguments which are as follows:
my $aggregator = TAP::Harness::Archive->aggregator_from_archive( { archive => 'my_tests.tar.gz', parser_callbacks => { plan => sub { warn "Nice to see you plan ahead..." }, unknown => sub { warn "Your TAP is bad!" }, }, made_parser_callback => sub { my ($parser, $file, $full_path) = @_; warn "$file is temporarily located at $full_path\n"; } } );
Michael Peters, "<mpeters at plusthree.com>"
Please report any bugs or feature requests to "bug-tap-harness-archive at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=TAP-Harness-Archive>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
perldoc TAP::Harness::Archive
You can also look for information at:
<http://annocpan.org/dist/TAP-Harness-Archive>
<http://cpanratings.perl.org/d/TAP-Harness-Archive>
<http://rt.cpan.org/NoAuth/Bugs.html?Dist=TAP-Harness-Archive>
<http://search.cpan.org/dist/TAP-Harness-Archive>
Copyright 2007 Michael Peters, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2022-11-19 | perl v5.36.0 |