Silence the skipping on missing Test::Kwalitee, and give the real reason
[dbsrgits/DBIx-Class-Schema-Loader.git] / t / 04kwalitee.t
index 46c5119..dea2297 100644 (file)
@@ -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();