On Mon, Nov 09, 2009 at 12:15:52PM -0500, Erik Osheim wrote:
> 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?
> That's a good idea. Maybe something like run_ok()?

No, test that it does what it says on the tin, like this does:

http://cpansearch.perl.org/src/DCANTRELL/Devel-CheckOS-1.61/t/50-script.t

Obviously, if your script is just a very thin wrapper around a module,
and just passes arguments through to a method, then you don't need to be
so rigourous about it ;-) but actually running the thing once, with some
parameters, and checking the results, would be a Good Thing.

-- 
David Cantrell | Reality Engineer, Ministry of Information

PERL: Politely Expressed Racoon Love

Reply via email to