Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Testing modules and methods while waiting for Santa

by rkg (Hermit)
on Dec 18, 2003 at 22:38 UTC ( [id://315680]=note: print w/replies, xml ) Need Help??


in reply to Testing modules and methods while waiting for Santa

Welcome to the world of testing. (Not that I've been here all that long, but welcome.)

For the benefit of others reading your post, let me point out that effective test suites can be pretty basic. Typically, my tests are a line or two each -- less elaborate than the systematic checker you posted here. My test file may contain many of these cases, but each unit test is pretty basic. And as I find bugs, I fix the bug and cover myself by testing that case.

The XP approach of very simple unit tests, written before the code itself, testing basic and edge cases, is a strong strategy. If comprehensive, any code that passes the suite by definition matches the spec. In short, the tests document the common and unusual behavior of every object and method.

Surely whomever brings you gifts this time of year will be impressed by any use of testing at all, so that should bode well for you!

rkg

  • Comment on Re: Testing modules and methods while waiting for Santa

Replies are listed 'Best First'.
Re: Re: Testing modules and methods while waiting for Santa
by TVSET (Chaplain) on Dec 18, 2003 at 23:25 UTC
    Welcome to the world of testing.

    Oh, thanks. I am not along, it seems. :)

    The XP approach of very simple unit tests, written before the code itself, testing basic and edge cases, is a strong strategy.

    XP approach, for those who still haven't heard of it, is an "Extreme Programming" approach. Google for more info. :)

    P.S.: Mentioned for the benefit of those reading through the thread. :)

Log In?
Username:
Password:

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

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

    No recent polls found