Ensure author side tests are always run
Tomas Doran [Mon, 18 Jan 2010 20:47:32 +0000 (20:47 +0000)]
Makefile.PL
xt/pod.t

index 6a8fddd..5582c6a 100644 (file)
@@ -2,6 +2,7 @@ use strict;
 use warnings;
 use inc::Module::Install;
 use Module::Install::AuthorRequires;
+use Module::Install::AuthorTests;
 
 perl_version '5.8.1';
 
@@ -23,6 +24,12 @@ requires('MRO::Compat'               => '0.10');
 requires 'namespace::autoclean';
 test_requires 'Test::More' => '0.88';
 
+author_requires 'Test::Pod' => 1.14;
+author_requires 'Module::Info';
+author_requires 'File::Find::Rule';
+
+author_tests 'xt/';
+
 feature 'JSON (application/json) support',
     -default   => 0,
     'JSON'     => '2.12';
index 4372a13..6a644e9 100644 (file)
--- a/xt/pod.t
+++ b/xt/pod.t
@@ -2,7 +2,6 @@ use strict;
 use warnings;
 use Test::More;
 
-eval "use Test::Pod 1.14";
-plan skip_all => 'Test::Pod 1.14 required' if $@;
+use Test::Pod 1.14;
 
 all_pod_files_ok();