bump version
[gitmo/MooseX-Storage.git] / t / pod-coverage.t
index 703f91d..e753a1a 100644 (file)
@@ -1,6 +1,18 @@
-#!perl -T
-
+#!perl
 use Test::More;
-eval "use Test::Pod::Coverage 1.04";
+
+plan skip_all => "set env var RELEASE_TESTING=1 to run these"
+  unless $ENV{RELEASE_TESTING};
+
+eval "use Test::Pod::Coverage 1.08";
+warn $@ if $@;
 plan skip_all => "Test::Pod::Coverage 1.04 required for testing POD coverage" if $@;
-all_pod_coverage_ok();
+
+my @modules = grep { ! /::Traits?::/ } all_modules();
+
+plan tests => scalar(@modules);
+
+foreach my $module (@modules) {
+    pod_coverage_ok($module);
+}
+