man Test::TAP::HTMLMatrix () - Creates colorful matrix of Test::Harness friendly test run results using Test::TAP::Model.

NAME

Test::TAP::HTMLMatrix - Creates colorful matrix of Test::Harness friendly test run results using Test::TAP::Model.

SYNOPSIS

        use Test::TAP::HTMLMatrix;
        use Test::TAP::Model::Visual;

        my $model = Test::TAP::Model::Visual->new(...);

        my $v = Test::TAP::HTMLMatrix->new($model);

        print $v->html;

DESCRIPTION

This module is a wrapper for a template and some visualization classes, that knows to take a Test::TAP::Model object, which encapsulates test results, and produce a pretty html file.

METHODS

new ($model, $?extra, $?petal)
$model is the Test::TAP::Model object to extract results from, and the optional $?extra is a string to put in <pre></pre> at the top. $petal is an optional templater object. If you are not happy with the default template, you can use this. Read the source to see how it's processed.
html
Returns an HTML string. This is also the method implementing stringification.
model
extra
petal
Just settergetters. You can override these for added fun.
title
A reasonable title for the page:
        "TAP Matrix - <gmtime>"
tests
A sorted array ref, resulting from CW$self->model->test_files;
template_file
css_file
These return the full path to the Petal template and the CSS stylesheet it uses. Note that these are taken from CW@INC. If you put template.html under CW catfile(qw/Test TAP HTMLMatrix/) somewhere in your CW@INC, it should find it like you'd expect.
css_uri
This is a URI::file object based on CWcss_file. Nothing fancy. You probably want to override this to something more specific to your env.
has_inline_css ?$new_value
This accessor controls whether inline CSS will be generated instead of CW<link> style stylesheet refs.
inline_css
Returns the contents of CWcss_file fudged slightly to work inside CW<style> tags.

AUTHORS

This list was generated from svn log testgraph.pl and testgraph.css in the pugs repo, sorted by last name.

•
Michal Jurosz
•
Yuval Kogman <nothingmuch@woobling.org> NUFFIN
•
Max Maischein <corion@cpan.org> CORION
•
James Mastros <james@mastros.biz> JMASTROS
•
Scott McWhirter <scott-cpan@NOSPAMkungfuftr.com> KUNGFUFTR
•
putter (svn handle)
•
Autrijs Tang <autrijus@autrjius.org> AUTRIJUS
•
Gaal Yahas <gaal@forum2.org> GAAL

COPYRIGHT & LICNESE

        Copyright (c) 2005 the aforementioned authors. All rights
        reserved. This program is free software; you can redistribute
        it and/or modify it under the same terms as Perl itself.