From: Dagfinn Ilmari Mannsåker Date: Fri, 11 Apr 2008 18:56:11 +0000 (+0000) Subject: Silence the skipping on missing Test::Kwalitee, and give the real reason X-Git-Tag: 0.04999_05~9 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=90ad8cbadb7235447a4c1ad0cd4bcb2c8e6a95a0;p=dbsrgits%2FDBIx-Class-Schema-Loader.git Silence the skipping on missing Test::Kwalitee, and give the real reason if it is installed but this is running in a dist. --- diff --git a/t/04kwalitee.t b/t/04kwalitee.t index 46c5119..dea2297 100644 --- a/t/04kwalitee.t +++ b/t/04kwalitee.t @@ -1,7 +1,8 @@ use Test::More; -eval { require Test::Kwalitee; die "Not maintainer" unless -f 'MANIFEST.SKIP' }; -if($@) { - plan( skip_all => $@ ); -} +plan skip_all => "Not maintainer" unless -f 'MANIFEST.SKIP'; + +eval { require Test::Kwalitee; }; +plan skip_all => 'Test::Kwalitee not installed' if $@; + Test::Kwalitee->import();