Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Help on TAP::Formatter::HTML

by Rahul6990 (Beadle)
on Apr 09, 2013 at 09:55 UTC ( #1027694=perlquestion: print w/replies, xml ) Need Help??
Rahul6990 has asked for the wisdom of the Perl Monks concerning the following question:

Hi Perl Monks,

My assignment is to create TAPs report I have being following the below link:

In that link I am using the code:

my $fmt = TAP::Formatter::HTML->new; $fmt->css_uris([])->inline_css( $my_css ) ->js_uris(['', ' +om.js']) ->inline_js( '$(div.summary).hide()' );

But I did not get with what value shall I need to initialize $my_css, so get the HTML op in the desired.

Next problem is that I don't know how to write test files. Below is the code that I have written so far

For main script

use TAP::Formatter::HTML; use TAP::Harness; use accessors; use strict; my $fmt = TAP::Formatter::HTML->new; my @tests = glob('*.t'); my $my_css; $fmt->css_uris([])->inline_css( $my_css ) ->js_uris(['', ' +om.js']) ->inline_js( '$(div.summary).hide()' ); my $harness = TAP::Harness->new( { formatter => $fmt, merge => 1 } ); $fmt->output_file('output.html'); $harness->runtests('simple.t');

For Test File(simple.t)

print "\nHello world";

Replies are listed 'Best First'.
Re: Help on TAP::Formatter::HTML
by Anonymous Monk on Apr 09, 2013 at 10:09 UTC

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1027694]
Approved by Corion
[Corion]: Tabish: What are "tow" packages? Maybe you want to use PAR::Packer to copy them and your main program into one (ugly) script for distribution?

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2017-12-11 09:55 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (288 votes). Check out past polls.