|laziness, impatience, and hubris|
Testing perl modules that rely on remote databy worr (Novice)
|on Aug 01, 2010 at 18:38 UTC||Need Help??|
worr has asked for the
wisdom of the Perl Monks concerning the following question:
I'm writing a Perl module that uses a popular social networking website. Obviously I'd like to write some good unit tests so that I can verify that my code works, but I'm at a loss at the best way to do this.
Since data on the site has a tendency to fluctuate often, what kind of stuff should I do to set up my tests? Should I some of the methods test against my own account and hope the expected results don't change?
Also, I use Moose in my Perl module, but should I really bother testing the methods that it writes for me?
I'm new to Perl testing, so any help would be appreciated.