release tests using Test::Pod and Test::Pod::Coverage
Karen Etheridge [Sun, 3 Feb 2013 02:15:19 +0000 (18:15 -0800)]
t/release-pod-coverage.t [new file with mode: 0644]
t/release-pod-syntax.t [new file with mode: 0644]

diff --git a/t/release-pod-coverage.t b/t/release-pod-coverage.t
new file mode 100644 (file)
index 0000000..c059674
--- /dev/null
@@ -0,0 +1,19 @@
+use strict;
+use warnings;
+use Test::More;
+
+BEGIN {
+  unless ($ENV{RELEASE_TESTING}) {
+    plan skip_all => 'these tests are for release candidate testing';
+  }
+}
+
+eval "use Test::Pod::Coverage 1.08";
+plan skip_all => "Test::Pod::Coverage 1.08 required for testing POD coverage"
+  if $@;
+
+eval "use Pod::Coverage::TrustPod";
+plan skip_all => "Pod::Coverage::TrustPod required for testing POD coverage"
+  if $@;
+
+all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' });
diff --git a/t/release-pod-syntax.t b/t/release-pod-syntax.t
new file mode 100644 (file)
index 0000000..7f1e5ca
--- /dev/null
@@ -0,0 +1,14 @@
+use strict;
+use warnings;
+use Test::More;
+
+BEGIN {
+  unless ($ENV{RELEASE_TESTING}) {
+    plan skip_all => 'these tests are for release candidate testing';
+  }
+}
+
+eval "use Test::Pod 1.41";
+plan skip_all => "Test::Pod 1.41 required for testing POD" if $@;
+
+all_pod_files_ok();