Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Testing programs

by sauoq (Abbot)
on Oct 25, 2005 at 13:05 UTC ( #502694=note: print w/replies, xml ) Need Help??

in reply to Testing programs

Why use a command line argument for testing? I sometimes stick my tests in a separate file and do() them when I want to.

In my program...

#!/usr/bin/perl use warnings; use strict; do ""; sub foo { "foo" }
And then in ...
use Test::Simple tests => 1; ok( foo() eq 'foo' ); exit;

Then I can just comment out my do ""; line when I'm done with it.

"My two cents aren't worth a dime.";

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://502694]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2016-10-25 07:49 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (315 votes). Check out past polls.