in Apache-Test
1.06 Stas introduced a new cool feature that allows you to specify a banner (or other string) to be printed when a test fails under 'make test'. for instance, if any of the mod_perl 2.0 tests fail the end-user is greeted by
+--------------------------------------------------------+ | Please file a bug report: http://perl.apache.org/bugs/ | +--------------------------------------------------------+
bug_report()
subroutine in your TEST.PL
template. the only problem is, most people don't use a test template, instead calling Apache::TestRun->generate_script()
to generate their test script.Apache-Test
(1.07) will include the ability to specify the failure string via a new bugreport
argument to generate_script()
, such asApache::TestRun->generate_script(bugreport => <
which will look like this if 'make test' fails*** server localhost.localdomain:8529 shutdown !!! error running tests (please examine t/logs/error_log) ---- YIKES ---- make: *** [run_tests] Error 1
of course, that's not a very useful message, but you can change it to point to rt, your documentation, or whatever - pretty useful, I think. anyway, it's checked in to cvs now, so give it a try.