in reply to Running test files from a cgi

I'd say don't use do. If you've got the test notebook you can find the sample for a smoke test on p57, something like this (incomplete code)-

my $strap = Test::Harness::Straps->new(); for my $test ( <path/to/tests/*.t> ) { # warn/debug "Running test: $test\n"; my %result = $strap->analyze_file( $test ); next if $result{passing}; # Build report on failing results here # to present in an Ajax'd div or something. }

You might accidentally fix it by not using do and you should at least track the problem down to a single test otherwise.

Update: s/frame/div/; I did not mean a literal HTML frame.

Replies are listed 'Best First'.
Re^2: Running test filese from a cgi
by cosmicperl (Chaplain) on Apr 26, 2008 at 17:49 UTC
    aghhhh... finally I fully understand what all those smoke test reports on p5p are about. Wackad :)
    This looks like the solution. I'll update my post if it works. Thank you.