t/sample-tests/switches
Ovid
curtis_ovid_poe at yahoo.com
Wed Jun 11 14:29:02 UTC 2008
--- Andy Armstrong <andy at hexten.net> wrote:
> Ovid originally wrote t/sample-tests/switches and the tests that use
> it. I'm not sure what the intention of the test is or whether it's
> still valuable. It seems that the condition it tests isn't something
> we can rely on.
Reading through there and trying to remember what I did. I believe
that the intent was to ensure that if I did this:
prove -Mstrict t/foo.t
That TAP::Parser would get called with "switches => ['-Mstrict']" as
one of the arguments. This would let people pass switches directly to
the Perl executable invoking a test without setting PERL5OPT, but we
don't appear to actually expose this in prove. So I think the test is
important, but the functionality it's designed to test isn't made
available for people. Oops.
Of course, I could be misremembering all of this.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog - http://use.perl.org/~Ovid/journal/
More information about the tapx-dev
mailing list