Start Testing

Qiang on 2006-11-27T22:52:18

I have been in a new role at work (different team but same org) for two months. i was supposed to be doing mostly sysadmin work which is what i was doing before, plus sofeware deployment and some of Perl webapp development ( both i had never done professionally ).



but i started to write Perl app from the day one which i am quite happy. now i just finished the second app. however, it occurred to me that no one here writes much test for their programs( either WebObjects or Perl ). Including me :~.



so my current goal is to learn testing. i have went through few articles from Perl.com and Test::Tutorial. the ones i found useful are

  • Building Testing Libraries
  • An introduction to Quality Assurance
also found a pdf version of Test::Tutorial (2004 version) which seems to be more content than the CPAN version.



There are lots Test::* modules out there and i am not sure which one is suitable for the usual Database, Form testing. the one s i found may useful are



  • Test::Simple
  • Test::More
  • Devel::Cover
  • Test::Deep
  • Test::WWW::Mechanize


there are bunch of DBD:: mock modules seem good for DB testing.



arr.. i wish i went to the Toronto YAPC testing talks. :)


more Test::* module

Bernhard on 2006-11-28T08:55:07

Some more modules that I find useful:

  • Test::TAP::HTMLMatrix
  • Test::Perl::Critic
  • Test::WWW::Selenium
  • Test::Strict
  • Test::Differences
  • Test::POD

Test::DatabaseRow

thepler on 2006-11-28T14:23:32

If you're tests involve a database, you may find Test::DatabaseRow useful.

Re:Test::DatabaseRow

Qiang on 2006-11-28T15:13:49

andy lester has few talks on testing: http://petdance.com/perl/

in one of the talks, he also mentioned Test::DatabaseRow