Perl: the Markov chain saw | |
PerlMonks |
Testing A Stand Alone Applicationby est (Acolyte) |
on Mar 12, 2008 at 11:40 UTC ( [id://673716]=perlquestion: print w/replies, xml ) | Need Help?? |
est has asked for the wisdom of the Perl Monks concerning the following question:
Heya monks, How do we create a testing for a stand alone application (i.e. not a module)? Test::Tutorial explains that we could create a *.t file for each *.pm module, but if what I have is only a single *.pl file, how do I create the *.t file? I mean, I can write a *.t file that tests every case in the application, but if someone changes something in the *.pl file, then my *.t file will never catch the modification? For example if I have a skeleton script as below in my foo.pl, could someone please shed a light with the test suite?
Thanks, est
Back to
Seekers of Perl Wisdom
|
|