Force author tests to be run when in author mode
[gitmo/MooseX-Getopt.git] / Makefile.PL
index d9d0041..af72d8c 100644 (file)
@@ -1,5 +1,12 @@
+use strict;
+use warnings;
 use inc::Module::Install 0.75;
 
+if ($Module::Install::AUTHOR) {
+    require Module::Install::AuthorRequires;
+    require Module::Install::AuthorTests;
+}
+
 name 'MooseX-Getopt';
 license 'perl';
 
@@ -15,6 +22,10 @@ build_requires 'Test::Moose';
 build_requires 'Test::More'       => '0.62';
 build_requires 'Test::Exception'  => '0.21';
 
+author_requires 'Test::Pod' => 1.14;
+author_requires 'Test::Pod::Coverage' => '1.04';
+author_tests('t/author');
+
 resources repository => 'git://git.moose.perl.org/MooseX-Getopt.git';
 
 auto_manifest();