bizarre TAP::Parser behavior
Andy Armstrong
andy at hexten.net
Mon May 4 10:26:52 GMT 2009
On 4 May 2009, at 05:21, fREW Schmidt wrote:
> I have written a small module that will turn TAP into color coded
> html. It seems to work fine when I run it from a special standalone
> service, but if I run it directly inside of a CGI::Application
> controller the output never actually gets parsed. It's extremely
> strange: if I run the TAP somehow ends up being the output of
> running some apache related binary (it outputs a bunch of help on
> what switches to use etc.)
Can we see that output please?
> And then if I run it with CGI::Application::Server the output never
> goes to TAP::Parser at all and instead gets output to the console
> and the server doesn't get any of it. Does anyone know what's going
> on? Here's my code:
[snip]
> sub tests {
> my $self = shift;
> my @files = File::Find::Rule->file()->name('*.t')
> ->in( File::Spec->catdir( $self->get_directory, 't' ) );
>
> my @total_results;
>
> foreach my $file (@files) {
> push @total_results, "<span class='file'>$file</span>";
> my $parser = TAP::Parser->new( { source => $file } );
> $aggregate->add( $file => $parser );
Where is $aggregate declared?
--
Andy Armstrong, Hexten
More information about the tapx-dev
mailing list