Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Perl Modules

    TAP::Formatter::HTML 0.04

    Download button

    No screenshots available
    Downloads: 493  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.1/5)
    8 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Steve Purkis | More programs
    Perl Artistic License / FREE
    August 1st, 2008, 09:34 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    TAP::Formatter::HTML description

    TAP::Formatter::HTML is a Perl module to TAP Test Harness output delegate for html output.

    TAP::Formatter::HTML is a Perl module to TAP Test Harness output delegate for HTML output.

    SYNOPSIS

    # cmdline usage:
    % prove -m -Q --formatter=TAP::Formatter::HTML >output.html

    # perl usage:
    use TAP::Harness;

    my @tests = glob( 't/*.t' );
    my $harness = TAP::Harness->new({ formatter_class => 'TAP::Formatter::HTML',
    merge => 1 });
    $harness->runtests( @tests );
    # prints HTML to STDOUT by default

    # or if you really don't want STDERR merged in:
    my $harness = TAP::Harness->new({ formatter_class => 'TAP::Formatter::HTML' });

    # to use a custom formatter:
    my $fmt = TAP::Formatter::HTML->new;
    $fmt->css_uris([])->inline_css( $my_css )
    ->js_uris(['http://mysite.com/jquery.js', 'http://mysite.com/custom.js'])
    ->inline_js( '$(div.summary).hide()' );

    my $harness = TAP::Harness->new({ formatter => $fmt, merge => 1 });

    # you can use your own customized templates too:
    $fmt->template('custom.tt2')
    ->template_processor( Template->new )
    ->force_inline_css(0);

    This module provides HTML output formatting for TAP::Harness (a replacement for Test::Harness. It is largely based on ideas from TAP::Test::HTMLMatrix (which was built on Test::Harness and thus had a from a few limitations - hence this module). For sample output, see:

    http://www.spurkis.org/TAP-Formatter-HTML/test-output.html

    This module is targeted at all users of automated test suites. It's meant to make reading test results easier, giving you a visual summary of your test suite and letting you drill down into individual failures (which will hopefully make testing more likely to happen at your organization.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    TAP Test Harness | HTML output | Perl module | TAP | Test | Harness



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM