>     prove -MDevel::Cover -Ilib -v t/*
>
> I remember mentioning something to Andy, but at the time he didn't like
> it.

On a related note, I think an -M option to prove might be a useful
feature.

With my own test suite, I want to load and run a perl module
(TestConfig.pm) before each test script is run.

Currently, I do this via a wrapper:

    $ cat runtests
    #!/bin/sh

    export PERL5LIB=/path/to/modules
    export PERL5OPT="-MTestConfig"

    prove $*

This seems ugly to me, mainly because perl also loads and runs 
TestConfig.pm before running prove itself.

With an -M feature, I could use:

    $ cat runtests
    #!/bin/sh

    prove -I/path/to/modules -MTestConfig $*


Which is (very) slightly cleaner.  


Michael


--
Michael Graham <[EMAIL PROTECTED]>


Reply via email to