I've written a script that when run with a --test flag, calls a subroutine that performs unit tests:
Unfortunately, during normal operation (in which this sub is never called), Test::More produces the output:sub run_tests { use Test::More qw/no_plan/; ...(tests follow)... }
How I can suppress that?
Is this really a question about how to conditionally load a module?
Thanks!
David
In reply to No tests run! by hey_david
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |