[Melbourne-pm] Testing non-pel scripts with Test::Harness

Ryan, Martin G Martin.G.Ryan at team.telstra.com
Sun Feb 18 14:12:53 PST 2007


Thanks Shlomi and Simon - its all good now.  For anyone else out there
doing anything similar, there's a completely new TAP framework being
written by Schwern (http://perl-qa.yi.org/index.php/TAP::Harness) that
includes running tests in parallel which will be very useful for volume
testing. 

> -----Original Message-----
> From: Shlomi Fish [mailto:shlomif at iglu.org.il]
> Sent: Friday, 16 February 2007 4:22 AM
> To: melbourne-pm at pm.org; simon at unisolve.com.au
> Cc: Ryan, Martin G
> Subject: Re: [Melbourne-pm] Testing non-pel scripts with Test::Harness
> 
> Hi all!
> 
> On Wednesday 14 February 2007, Simon Taylor wrote:
> > Hello Martin,
> >
> > > Anyone been here before?  Anyone know Test::Harness well enough to
> > > me what I'm doing wrong?
> >
> > You need to tell Test::Harness to stop using the '-w ' switch:
> >
> > perl -MTest::Harness -e
> > '$Test::Harness::switches=undef;runtests("./a1.tcl")'
> >
> 
> As I was trying the same with the Test::Harness-based "prove" and the
> Test::Run-based "runprove", I found out a problem with runprove.
> Apparently,
> it used to pass "-w" to the scripts even if no command line switches
were
> specified on the command line. So I fixed this bug and now everything
is
> peachy in its Subversion trunk.
> 
> Thanks for noting that.
> 
> BTW, it works because perl detects the sha-bang and run the
alternative
> program specified there instead.
> 
> Oh and also look at:
> 
> http://use.perl.org/~Ovid/journal/32092
> 
> Regards,
> 
> 	Shlomi Fish
> 
> ---------------------------------------------------------------------
> Shlomi Fish      shlomif at iglu.org.il
> Homepage:        http://www.shlomifish.org/
> 
> Chuck Norris wrote a complete Perl 6 implementation in a day but then
> destroyed all evidence with his bare hands, so no one will know his
> secrets.


More information about the Melbourne-pm mailing list