Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

On when to test

by petdance (Parson)
on Mar 31, 2012 at 17:40 UTC ( [id://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

Replies are listed 'Best First'.
Re: On when to test
by tobyink (Canon) 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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-16 03:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found