Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Testaholics Anonymous (or how I learned to stop worrying and love Test::More)

by dragonchild (Archbishop)
on Mar 31, 2004 at 16:22 UTC ( #341331=note: print w/ replies, xml ) Need Help??


in reply to Testaholics Anonymous (or how I learned to stop worrying and love Test::More)

I test as much as I can, for two reasons:

  1. I have found the weirdest stuff break, stuff I would never have imagined.
  2. It's a form of documentation, for those of us without documentation sections in our non-existent project plans.

The only warning I'd have is that whenever a test fails, you have to make sure it's testing what you want it to. Recently, I made a necessary non-backwards-compatible interface change. Worked fine. Then, I started using it. Made a few more changes, then BAM! a test started failing. I looked deeper and found it was a test I hadn't updated when I made my interface change. The test hadn't been testing what I thought it had.

------
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


Comment on Re: Testaholics Anonymous (or how I learned to stop worrying and love Test::More)
Re: Re: Testaholics Anonymous (or how I learned to stop worrying and love Test::More)
by stvn (Monsignor) on Mar 31, 2004 at 16:35 UTC
    It's a form of documentation, for those of us without documentation sections in our non-existent project plans.

    Amen to that brother dragonchild! Although more times than not for us, the "documentation" phase is usually right before/after the "testing" phase, and both of them are in the always nebulous "last few weeks" of the project. I have been thinking about pushing the Test Driven Development Philosophy as a way to avoid this all too common scenario, and get both tested code and (pseudo) documentation in one fell swoop.

    -stvn
      Amen to that brother dragonchild!
      Test-ify! Test-ify!
      (Shouldn't this thread be titled "Dr. Testlove..."?)

      The PerlMonk tr/// Advocate
        Test-ify! Test-ify!

        That reminds me of a little song!

        (I have no real excuse - it was late and I'd had a bad day :-)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2014-09-22 15:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (198 votes), past polls