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.
  • prove is very similar (in my opinion not as good, but I don't mean that as anything against the prove developers) to the "tv" command from Test::Verbose. This might fit your needs better as it's an interface to "make test" rather than something that runs the tests directly. Try it and see if you like it.
  • I usually just run prove from within the t directory and put a
    use lib "../lib";
    in each test file.
    • prove respects the -I command-line option (and you can stack them the same way you can with perl itself):

      prove -I/some/project/lib -I../lib

      It also looks for a PROVE_SWITCHES environment variable, which I usually load up with something like this:

      -I/some/shared/lib -I/my/project/lib

      This way, I don't have to modify the test scripts at all, and if I use absolute paths, I can run the tests from whatever directory I happen to be in at the time.