t/sample-tests/switches

Andy Armstrong andy at hexten.net
Wed Jun 11 14:47:49 UTC 2008


On 11 Jun 2008, at 15:29, Ovid wrote:
> 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.

OK :)

In fact prove uses -M to load a module immediately. The idea was to  
allow plugins to be loaded although we never did anything more than  
load the module. Since Steve's factory work this functionality becomes  
more useful - a module loaded into prove can now hook itself in and  
substitute classes it provides for the builtins.

What do you suggest we do?

-- 
Andy Armstrong, Hexten






More information about the tapx-dev mailing list