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

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

From:
Michael Peters
Date:
January 22, 2009 09:57
Subject:
Re: Perl 6 and Test.pm's skip() function
Message ID:
4978B300.9010302@plusthree.com
Eric Wilhelm wrote:

> I suppose "if($whatever) { some_test() } else { alternate_test()}"
> would complicate automatic counting.  But, you have to go down one 
> branch. 

But there's no protection that one branch doesn't have a different number of tests than the other.

> The only impossible spot is when tests are inside e.g. a 
> runtime dispatched method, no?  (And, given the procedural paradigm, 
> that seems to be an odd case.)

No, that's not odd at all. Any data driven testing system will be that way. Tests are run based on 
some config file (I know Ovid uses YAML for something like this), etc.

-- 
Michael Peters
Plus Three, LP




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