hey_david has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: No tests run!
by Zaxo (Archbishop) on Jul 24, 2003 at 02:38 UTC | |
by hey_david (Sexton) on Jul 25, 2003 at 12:57 UTC | |
|
Re: No tests run!
by sauoq (Abbot) on Jul 24, 2003 at 02:33 UTC | |
by hey_david (Sexton) on Jul 25, 2003 at 12:45 UTC |