Subject: | ::Simple's 00-load.t should "Bail out!" if a "use" fails |
Module::Starter::Simple creates a 00-load.t which attempts to ensure that each module can be successfully loaded.
However, if this test fails (say, because of a typo in the module) any tests in any other .t files will run. If you've got a lot of tests you end up with a load of failures on your screen (and scrollback buffer) that are extraneous, and you have to wade back through them to find out what the problem is.
To fix this, the generated 00-load.t should print "Bail out!" and exit if any of the module loads fail. This will cause Test::Harness to immediately halt the tests, and makes it much more obvious to the developer why the test has failed.
"Bail out!" is described in more detail at http://search.cpan.org/dist/Test-Harness/lib/Test/Harness/TAP.pod#Bail_out!