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.
  • I just don't use them at all as ordinary use and require cause nearly exactly same test failure if there is something wrong with module you are trying to load.

    Ilya Martynov ( [])

  • I use a 01_compile.t in all my modules that contains all the load-integrity testing. So regular use_ok stuff, plugin loading, checking $VERSION values all match, does Exporter export what it is supposed to, etc...

    That way I get a full report on load failures, and the rest of the tests can totally ignore the issue and load normally.
    • That's what I've done with Test::Harness [], but this isn't my code base.

      • It's our code base, including yours, no?

        And I believe we already have a test file that loads all modules, but I'm not 100% certain (well, you shouldn't trust anything I say today anyway 8^)