Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: What is the best way to add tests to existing code?

by dragonchild (Archbishop)
on May 21, 2004 at 14:15 UTC ( #355282=note: print w/ replies, xml ) Need Help??

in reply to What is the best way to add tests to existing code?

First place I'd start would be to write a test for every bug in your bug database, closed or not. For one thing, you guarantee that the bug that was fixed 4 years ago is still fixed. The other reason is that you start to write tests for every subsytem that's being used. (If it isn't being used, then who cares if it has bugs or not?) This gives you ideas for tests that aren't specifically for bugs in your bug tracker. Maybe the bug is a specific instance of a general case and the fix didn't fix the general case.

Other than that, you pretty much have the list down.

We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

I shouldn't have to say this, but any code, unless otherwise stated, is untested

Comment on Re: What is the best way to add tests to existing code?

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2015-11-30 11:43 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (769 votes), past polls