I am using Template::Test in the tests for Template::Plugin::Latex and have discovered that using
skip_all "reason" results in "make test" or "prove t/test.t" reporting "skipped: (no reason given)". (which is annoying as I do provide a reason) This is because if all tests are skipped Template::Test outputs 1..0 # skipped: $REASON whereas it should output 1..0 # skip $REASON and then the TAP framework will output "skipped: $REASON". Here is a patch: diff -u lib/Template/Test.pm.orig lib/Template/Test.pm --- lib/Template/Test.pm.orig 2009-03-12 20:58:44.000000000 +0000 +++ lib/Template/Test.pm 2009-03-12 20:59:12.000000000 +0000 @@ -73,7 +73,7 @@ # the grand total of tests $ntests += $EXTRA + scalar @results; $ok_count = 1; - print $ntests ? "1..$ntests\n" : "1..$ntests # skipped: $REASON\n"; + print $ntests ? "1..$ntests\n" : "1..$ntests # skip $REASON\n"; # flush cached results foreach my $pre_test (@results) { ok(@$pre_test); -- Andrew Ford, Director Pauntley Prints / Ford & Mason Ltd a.f...@ford-mason.co.uk South Wing Compton House pauntley-prints.co.uk Compton Green, Redmarley Tel: +44 1531 829900 ford-mason.co.uk Gloucester GL19 3JB Fax: +44 1531 829901 refcards.com cronolog.org Great Britain Mobile: +44 7785 258278 _______________________________________________ templates mailing list templates@template-toolkit.org http://mail.template-toolkit.org/mailman/listinfo/templates