in reply to Time consuming tests
I have this idea of putting these tests in another directory so I easily can chose which tests to run
erk. I would just go with an environment variable:
SKIP: { skip '$ENV{WANT_HONKING_BIG_TEST} is not set', 1 unless exists $ENV{WANT_HONKING_BIG_TEST}; cmp_ok( massive_test, '==', 42, 'blah blah blah' ); }
You can define the environment variable in your shell startup file, so that you always run the test. Someone who has a passing interest in the module downloads it from CPAN and will not pay the cost of the lengthy tests.
If they encounter a bug and are diligent about it, they'll read the "Reporting bugs" section in your documentation, and learn that there are additional tests that they can run which may help you diagnose the problem more accurately.
I dislike modules that ask "do you want to run these extra tests?". If you have to ask, then you shouldn't run them. People who are in the know and want those extra tests will know how to set up the environment before running CPAN/CPANP in order to get them.
- another intruder with the mooring in the heart of the Perl
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Time consuming tests
by thor (Priest) on Jan 27, 2005 at 12:59 UTC | |
|
Re^2: Time consuming tests
by eyepopslikeamosquito (Archbishop) on Jan 27, 2005 at 22:20 UTC |