Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: when do you stop writing test?

by jplindstrom (Monsignor)
on Feb 11, 2007 at 19:05 UTC ( [id://599483]=note: print w/replies, xml ) Need Help??


in reply to when do you stop writing test?

One of the agilistas said it very well on the XP mailing list once.

It's based on the fact that you really start to appreciate the test suite once it has saved you from breaking the application a couple of times.

Like when the tests told you that while you tinkered in this part of the code base a totally unrelated and completely separate feature stopped working. Only it wasn't so unrelated after all. And if not for the test no one would have realized there was a new bug in the system until days or weeks later when someone (I bet an end user too) reports that something isn't right.

So after writing tests over a period of time you realize the test suite is your safety net that will catch you when (not if) you fall. This is doubly true when someone is new to a code base, so by writing tests you ensure that neither you nor other people screw up the code.

Anyway, what the guy said on the mailing list was something like this:

You continue writing tests until boredom overcomes fear.

And I think that's very true.

/J

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-24 22:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found