|
|
| go ahead... be a heretic | |
| PerlMonks |
Test framework for simple command-line script?by loris (Hermit) |
| on Jun 12, 2008 at 09:26 UTC ( [id://691617]=perlquestion: print w/replies, xml ) | Need Help?? |
|
loris has asked for the wisdom of the Perl Monks concerning the following question: Hello all, I have just had the problem that a script using Getopt::Long tried to use the same option as both lowercase and uppercase. This was easily fixed (with Getopt::Long::Configure('no_ignore_case')). However, I started wondering what sort of testing framework would be best for this situation. The script is short (less than 200 LoC) and really is just a script. In the past I have turned scripts into modules and then used Test::Simple or Test::More, but in this case, this seems like it would be overkill. Is, as suggested here, Test::Cmd the way to go? Thanks, "It took Loris ten minutes to eat a satsuma . . . twenty minutes to get from one end of his branch to the other . . . and an hour to scratch his bottom. But Slow Loris didn't care. He had a secret . . ." (from "Slow Loris" by Alexis Deacon)
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||