http://qs321.pair.com?node_id=343705


in reply to Re: Testing for Beginners
in thread Testing for Beginners

I started going through Test::Tutorial and decided to write some better tests for one of my modules on CPAN. Wouldn't you know it, it exposed a bug in a section of code that I wrote but probably never had the reason to use. Guess it's time to collect all those improvements and submit a new version!

90% of every Perl application is already written.
dragonchild

Replies are listed 'Best First'.
Re: Re: Re: Testing for Beginners
by Ovid (Cardinal) on Apr 08, 2004 at 19:13 UTC

    Heh :) I hear that all the time. My favorite was when I started writing tests for a security module and immediately found a transient bug that had been stumping me for around a year!

    Once you get into testing, check out Devel::Cover. It is probably the single most important testing tool outside of the actual tests.

    Cheers,
    Ovid

    New address of my CGI Course.