Run author side tests always 0.22
Tomas Doran [Thu, 5 Nov 2009 21:16:27 +0000 (21:16 +0000)]
Makefile.PL
t/author/pod-coverage.t [new file with mode: 0644]
t/author/pod.t [new file with mode: 0644]
t/pod-coverage.t [deleted file]
t/pod.t [deleted file]

index 6e76ad6..9a9268d 100644 (file)
@@ -1,5 +1,7 @@
 # Load the Module::Install bundled in ./inc/
 use inc::Module::Install 0.75;
+use Module::Install::AuthorRequires;
+use Module::Install::AuthorTests;
 
 # Define metadata
 name 'MooseX-Storage';
@@ -31,11 +33,16 @@ feature 'File',
   -default   => 1,
   'IO::File' => '0.1';
 
+author_tests 't/author';
+
 build_requires 'Test::More'      => '0.42';
 build_requires 'Test::Deep'      => '0';
 build_requires 'Test::Exception' => '0';
 build_requires 'Test::TempDir'   => '0.02';
 
+author_requires 'Test::Pod' => '1.14';
+author_requires 'Test::Pod::Coverage' => '1.08';
+
 resources repository => 'git://git.moose.perl.org/gitmo/MooseX-Storage.git';
 
 auto_install;
diff --git a/t/author/pod-coverage.t b/t/author/pod-coverage.t
new file mode 100644 (file)
index 0000000..f307dcf
--- /dev/null
@@ -0,0 +1,13 @@
+#!perl
+use Test::More;
+
+use Test::Pod::Coverage 1.08;
+
+my @modules = grep { ! /::Traits?::/ } all_modules();
+
+plan tests => scalar(@modules);
+
+foreach my $module (@modules) {
+    pod_coverage_ok($module);
+}
+
diff --git a/t/author/pod.t b/t/author/pod.t
new file mode 100644 (file)
index 0000000..dfd40ea
--- /dev/null
@@ -0,0 +1,5 @@
+#!perl
+
+use Test::More;
+use Test::Pod 1.14;
+all_pod_files_ok();
diff --git a/t/pod-coverage.t b/t/pod-coverage.t
deleted file mode 100644 (file)
index e753a1a..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-#!perl
-use Test::More;
-
-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 $@;
-
-my @modules = grep { ! /::Traits?::/ } all_modules();
-
-plan tests => scalar(@modules);
-
-foreach my $module (@modules) {
-    pod_coverage_ok($module);
-}
-
diff --git a/t/pod.t b/t/pod.t
deleted file mode 100644 (file)
index db8fdde..0000000
--- a/t/pod.t
+++ /dev/null
@@ -1,8 +0,0 @@
-#!perl
-
-use Test::More;
-eval "use Test::Pod 1.14";
-plan skip_all => "set env var RELEASE_TESTING=1 to run these"
-  unless $ENV{RELEASE_TESTING};
-plan skip_all => "Test::Pod 1.14 required for testing POD" if $@;
-all_pod_files_ok();