NAME

Convert::TAP::Archive - Read from a TAP archive and convert it for displaying

VERSION

version 0.001

SYNOPSIS

use Convert::TAP::Archive qw(convert_from_taparchive);

my $html = convert_from_taparchive(
               '/must/be/the/complete/path/to/test.tar.gz',
               'TAP::Formatter::HTML',
           );

ABOUT

This modul can be of help for you if you have TAP archives (e.g. created with prove -a and now you wish to have the content of this archives in a special format like HTML or JUnit.

EXPORTED METHODS

convert_from_taparchive

The method takes two arguments. The first is required. It is the full path to your TAP archive. The second defaults to TAP::Formatter::HTML, but you can give any other formatter. The method will return the content of the TAP archive, parsed according to the formatter you have specified.

my $html = convert_from_taparchive(
               '/must/be/the/complete/path/to/test.tar.gz',
               'TAP::Formatter::HTML',
           );

BUGS AND LIMITATIONS

  • The author of this module has no expert knowledge about TAP processing and this means, this code could be crap. The author wrote this module, because he didn't find any better solution for the simple task of reading and parsing a TAP archive.

  • The method prints the pure TAP to STDOUT, because the parsing library is doing so... you'll have to live with it or send a patch that fixes this. The section in the code producing this behaviour is marked with a TODO.

  • For now there are no tests implemented to ensure quality.

AUTHOR

Boris Däppen <bdaeppen.perl@gmail.com>, Renée Bäcker <module@renee-baecker.de>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Boris Däppen, Renée Bäcker, plusW.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.