in reply to Portably unit testing scripts
The basic skeleton of my script is below, but it is built around the "modulino" approach of main(@ARGV) unless caller .... How would you unit test something like this? I could actually execute the script, but that isn't much of a "unit" test anymore and also defeats the purpose of the "modulino" style of unit testing scripts like this, and doing that portably would be tricky.
Hi,
What purpose does that modulino stuff serve anyway?
The most it can accomplish is to to substitute 1 symlink for 1 regular file -- thats silly golf , esp in a distribution
pod2usage exitval does accept "noexit"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Portably unit testing scripts (no modulinos)
by wanna_code_perl (Friar) on Oct 26, 2019 at 09:17 UTC | |
by Anonymous Monk on Oct 26, 2019 at 09:32 UTC |