Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

On when to test

by petdance (Parson)
on Mar 31, 2012 at 17:40 UTC ( #962781=perlmeditation: print w/ replies, xml ) Need Help??

The only time you need to test your code is if you care that it works correctly.

xoxo,
Andy

Comment on On when to test
Replies are listed 'Best First'.
Re: On when to test
by tobyink (Abbot) on Mar 31, 2012 at 21:37 UTC

    What if you care that it works incorrectly?

    The following Perl one liner tests to make sure that your test suite is failing...

    perl -MTAP::Harness -E'say for "1..1", TAP::Harness->new({verbosity=>- +3,lib=>["lib"]})->runtests(<t/*.t>)->all_passed?"not ok 1":"ok 1"'
    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlmeditation [id://962781]
Approved by planetscape
Front-paged by planetscape
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (12)
As of 2015-07-31 04:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls