in reply to testing code
For testing modules, Test::More is the main module that I use. Test::Exception is probably my second most used because I got bored of writing eval blocks to catch die.
Generally, I try to write as many of my tests as possible before coding. That way I know how the API of my modules will work, and I can catch an ugly API before I would be able to otherwise. Then, I write code for the modules and make sure I get all my tests to pass without warnings. After that, I run Devel::Cover over it all to make sure I've got good test coverage, and add test cases as needed.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: testing code
by geekgrrl (Pilgrim) on May 05, 2004 at 22:57 UTC | |
by leriksen (Curate) on May 06, 2004 at 02:51 UTC | |
|
Re: Re: testing code
by geekgrrl (Pilgrim) on May 07, 2004 at 19:05 UTC | |
by adrianh (Chancellor) on May 07, 2004 at 20:19 UTC |