This is an excellent idea in general, not just in CPAN modules. In the places I've worked, we've often had QA people who didn't understand the first thing about the operating system they were on. I've often had to build in 'testing' conditions into the code just so the QA people can test their code. I know this sounds bad, because they would be testing against the test versions of code and databases instead of the production versions; however, getting them to even understand that concept wasn't easy. The idea of them actually remembering to type something like ". ~/.project_test.ksh" was laughable.

(Please note that not all QA people with whom I've worked have been this way, but more than a few have; I'm sure we could all swap stories. If the slumping economy has had one positive effect, it's that we can now pick and choose better QA people than in the last few years.)

Anyway, I often provide "-P" and "-T" options (where applicable) to force things to production and test, respectively. It saves time, as merlyn noted, and forces one to consider development/test/production issues early, rather than later when they would need to be shoe-horned in awkwardly.

--
tbone1
Ain't enough 'O's in 'stoopid' to describe that guy.
- Dave "the King" Wilson


In reply to Re: Skip tests if/unless $ENV{FOO} is set using Test::More by tbone1
in thread Skip tests if/unless $ENV{FOO} is set using Test::More by merlyn

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.