Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • by Theory (10) on 2003.04.29 12:00 (#19576) Homepage Journal

    Actually, lots of CPAN modules do this already. All of the DBDs, for example, rely on the presence of environment variables in order to fully test their abilities to connect to databases. Similarly, HTML::Mason requires an environment variable for testing its ApacheHandler (since you can install and use Mason without mod_perl, if you like). And my App::Info module takes this approach so as to avoid testing values that may be different on a user's box than they would be on my own box.

    That said, I agree that it should probably be trumpeted more loudly and the word got out to more people. OTOH, sometimes long tests are necessary, and having people run them when they install CPAN modules is the best way to smoke out issues with one's modules. If you don't want to wait, don't make test.