Stories
Slash Boxes
Comments
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.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Every module I own (and all my work projects) have this, but explicitly as the first test.

    01_compile.t is responsible for compiling and loading absolutely everything in the distribution (including test support libraries), for running perl -c tests on all included scripts, and for things which loads module trees automatically, also for making sure that the $VERSION's of the modules all match.

    And if any of this fails, it should do a BAIL_OUT.

    All of this runs FIRST, so that all of the rest of the tests can trust implicitly that anything it loads will be ok. The other of the rest of the test scripts doesn't really matter THAT much.

    But in my opinion it's critical that this 01_compile.t (often named as 01-load.t) script is the very first test that is run.