----- Original Message ----

> From: Erik Osheim <e...@plastic-idolatry..com>
> To: perl-qa@perl.org
> Sent: Mon, 9 November, 2009 17:15:52
> Subject: Re: Discourage use_ok?
> 
> On Mon, Nov 09, 2009 at 04:32:18PM +0000, David Cantrell wrote:
> > Why not test that the script *works*, not just that it compiles?

Agreed, but it's nice to have a t/00-load.t which bails out if anything 
(programs or modules) fails to compile. Then individual test programs can 
exercise them.
 
> That's a good idea. Maybe something like run_ok()?

By what does that mean?  You generally want to test that for a given set of 
inputs for a given state, you get a particular set of outputs.  run_ok() 
doesn't really manage any of that.  Am I missing something here?  (I could very 
well be).

 
Cheers,
Ovid
--
Buy the book         - http://www.oreilly.com/catalog/perlhks/
Tech blog            - http://use.perl.org/~Ovid/journal/
Twitter              - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6

Reply via email to