in reply to Cannot redirect HTML output to a file using TAP::Formatter
If you are running an older version and can't upgrade, perhaps the output_fh accessor is there, and/or the environment variable.#! /usr/bin/perl use strict; use warnings; use TAP::Harness; use TAP::Formatter::HTML; my @tests = glob( 't/*.t' ); # to use a custom formatter: my $fmt = TAP::Formatter::HTML->new; 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( '/tmp/foo.html' );
fnord
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Cannot redirect HTML output to a file using TAP::Formatter
by mkhan (Sexton) on Jun 28, 2011 at 23:16 UTC | |
by Khen1950fx (Canon) on Jun 29, 2011 at 05:36 UTC | |
by mkhan (Sexton) on Jun 29, 2011 at 10:45 UTC |