[cgiapp] Re: bizarre TAP::Parser behavior
fREW Schmidt
frioux at gmail.com
Mon May 4 10:38:14 EDT 2009
On Mon, May 4, 2009 at 5:26 AM, Andy Armstrong <andy at hexten.net> wrote:
> 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?
>
I'll send the output when I get home.
> > 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?
>
Sorry, I took all of the $aggregate stuff out and I guess I missed a line in
the email. Pretend it wasn't there :-)
--
fREW Schmidt
http://blog.afoolishmanifesto.com
More information about the cgiapp
mailing list