My assignment is to create TAPs report I have being following the below link:
http://search.cpan.org/~spurkis/TAP-Formatter-HTML-0.11/lib/TAP/Formatter/HTML.pm
In that link I am using the code:
my $fmt = TAP::Formatter::HTML->new; $fmt->css_uris([])->inline_css( $my_css ) ->js_uris(['http://mysite.com/jquery.js', 'http://mysite.com/cust +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(['http://mysite.com/jquery.js', 'http://mysite.com/cust +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');
In reply to Help on TAP::Formatter::HTML by Rahul6990
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |