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

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

From:
Aristotle Pagaltzis
Date:
January 22, 2009 16:03
Subject:
Re: Perl 6 and Test.pm's skip() function
Message ID:
20090123000251.GD6340@klangraum.plasmasturm.org
* David E. Wheeler <david@kineticode.com> [2009-01-22 20:20]:
> There will be loops with tests in them, and the number of
> iterations of the loop will be independent of the code in the
> test script, making it impossible to actually count the number
> of tests with a computer until the tests have actually been
> run. Which is how no_plan works.

The nice thing about data-driven tests is that in most cases the
test program can programmatically derive the number of tests from
the test data so it can set up a plan without the programmer
having to count.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>



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