summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xt/05pod-coverage.t27
1 files changed, 27 insertions, 0 deletions
diff --git a/t/05pod-coverage.t b/t/05pod-coverage.t
new file mode 100755
index 00000000..c6444cf6
--- /dev/null
+++ b/t/05pod-coverage.t
@@ -0,0 +1,27 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+use lib 'urpm';
+
+use English qw(-no_match_vars);
+use Test::More;
+
+plan(skip_all => 'Author test, set $ENV{TEST_AUTHOR} to a true value to run')
+ if !$ENV{TEST_AUTHOR};
+
+eval {
+ require Test::Pod::Coverage;
+ Test::Pod::Coverage->import();
+};
+plan(skip_all => 'Test::Pod::Coverage required') if $EVAL_ERROR;
+
+my @modules = all_modules('urpm');
+
+plan tests => scalar @modules;
+
+foreach my $module (@modules) {
+ pod_coverage_ok(
+ $module,
+ );
+}