The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

TB2::Formatter::SimpleHTML - A very simple HTML formatter

SYNOPSIS

    use Test::Builder2;
    use TB2::Formatter::SimpleHTML;

    my $tb2 = Test::Builder2->singleton;
    my $ec = $tb2->event_coordinator;

    $ec->clear_formatters;      # remove the TAP formatter
    $ec->add_formatters(        # add the SimpleHTML formatter
        TB2::Formatter::SimpleHTML->create
    );

    $tb2->stream_start;
    $tb2->ok(1, "a name");
    $tb2->ok(0, "another name");
    $tb2->ok(1);
    $tb2->stream_end;

DESCRIPTION

This is a very, very simple HTML formatter to demonstrate how its done.