develooper Front page | perl.qa | Postings from January 2009

Re: Perl 6 and Test.pm's skip() function

From:
Andy Lester
Date:
January 22, 2009 11:31
Subject:
Re: Perl 6 and Test.pm's skip() function
Message ID:
34714215-8375-40E4-A8A0-42746B579701@petdance.com

On Jan 22, 2009, at 1:27 PM, Eric Wilhelm wrote:

> I personally use no_plan only because I can't be bothered to manually
> count things and don't want to assume that the number of tests run on
> *my* computer is somehow a universal constant.


I'm glad you find no_plan useful.  Many others do as well.

I use plans consistently, and have written a policy in  
Perl::Critic::Bangs that checks for no_plan (I think that's where I  
put it) and flags it as an error.

The assumptions you're talking about are not assumptions.  They are  
well-worn tenets of TAP and Perl testing that many people use and rely  
on.

xoa

--
Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance






nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About