From: Tomas Doran Date: Thu, 5 Nov 2009 21:16:27 +0000 (+0000) Subject: Run author side tests always X-Git-Tag: 0.22 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f3cef250be8d8c32193ca222fcb946fb4abfeb20;p=gitmo%2FMooseX-Storage.git Run author side tests always --- diff --git a/Makefile.PL b/Makefile.PL index 6e76ad6..9a9268d 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -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 index 0000000..f307dcf --- /dev/null +++ b/t/author/pod-coverage.t @@ -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 index 0000000..dfd40ea --- /dev/null +++ b/t/author/pod.t @@ -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 index e753a1a..0000000 --- a/t/pod-coverage.t +++ /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 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();