Testing perl modules

By Eric Downing. Filed in Perl, Programming, Scripting  |  
TOP del.icio.us digg

A quick way to test a perl module with a new method is to use a command like the following:

$ perl -MeTechTips::IssueTracking::ClearQuest -we '$tr =  eTechtips::IssueTracking::ClearQuest->new();'

This will test the new and ensure that you have the correct syntax if you do not have an easy test environment for your code, for example as I do not have a ClearQuest instance to test with.

Leave a Reply