I'm in the middle of trying to get my test suite to run successfully for the last day and a half. So i am feeling philosophical about testing, and am wondering what others do to test their code?
I use Test::Simple, and just have a whole bunch of tests that use WWW::Mechanize to hammer away at my website trying out different features. I also have simpler tests that just test subroutines or objects.
I'm wondering what your favorite test modules are, and how you go about testing (or if you don't). Does anyone actually write the tests before you do the coding? What is your method? Whenever I add a new feature, I try and get myself to write a script to test it.
I've found having tests does save me a lot of debugging time, because I'm basically debugging the code in advance. And there is some satisfaction in seeing all of those ok's fly by.