Make pod tests author only
Tomas Doran [Wed, 19 Jan 2011 00:08:27 +0000 (00:08 +0000)]
Changes
Makefile.PL
lib/Catalyst/Devel.pm
lib/Catalyst/Helper.pm
t/02pod.t [deleted file]
t/03podcoverage.t [deleted file]
t/author/pod.t [new file with mode: 0644]
t/author/podcoverage.t [new file with mode: 0644]
t/author/version_numbers.t [moved from xt/version_numbers.t with 92% similarity]

diff --git a/Changes b/Changes
index e619b58..316ba53 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,5 +1,9 @@
 This file documents the revision history for Perl extension Catalyst-Devel.
 
+        - Fix for copying generated files into installed apps + tests
+          to ensure it keeps working. abraxxa++
+        - Make Pod tests author only
+
 1.30 2011-01-11 23:54:00
         - Increased Catalyst::Plugin::ConfigLoader dependency to 0.30
         - Include File::Copy::Recursive in inc/ when building a dist of an
index 2148282..14d3b08 100644 (file)
@@ -2,6 +2,7 @@ use strict;
 use warnings;
 use inc::Module::Install 0.91;
 use Module::Install::AuthorRequires;
+use Module::Install::AuthorTests;
 
 name     'Catalyst-Devel';
 all_from 'lib/Catalyst/Devel.pm';
@@ -36,6 +37,8 @@ test_requires 'Test::More' => '0.94';
 
 install_share 'share';
 
+author_tests 't/author';
+
 if ( $^O eq 'MSWin32' ) {
     # Proc::Background needs this on Win32 but doesn't actually
     # require it, if it's missing it just dies in the Makefile.PL.
index c017db7..d279447 100644 (file)
@@ -4,7 +4,7 @@ use strict;
 use warnings;
 
 # Change Catalyst::Helper also.
-our $VERSION             = '1.30';
+our $VERSION             = '1.31';
 our $CATALYST_SCRIPT_GEN = 40;
 
 $VERSION = eval $VERSION;
index 0ea0bd6..8aa91c6 100644 (file)
@@ -19,7 +19,7 @@ use namespace::autoclean;
 with 'MooseX::Emulate::Class::Accessor::Fast';
 
 # Change Catalyst/Devel.pm also
-our $VERSION = '1.30';
+our $VERSION = '1.31';
 
 my %cache;
 
diff --git a/t/02pod.t b/t/02pod.t
deleted file mode 100644 (file)
index 1647794..0000000
--- a/t/02pod.t
+++ /dev/null
@@ -1,7 +0,0 @@
-use Test::More;
-
-eval "use Test::Pod 1.14";
-plan skip_all => 'Test::Pod 1.14 required' if $@;
-plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
-
-all_pod_files_ok();
diff --git a/t/03podcoverage.t b/t/03podcoverage.t
deleted file mode 100644 (file)
index dff7c5c..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-use Test::More;
-
-eval "use Test::Pod::Coverage 1.04";
-plan skip_all => 'Test::Pod::Coverage 1.04 required' if $@;
-
-eval "use Pod::Coverage 0.20";
-plan skip_all => 'Pod::Coverage 0.20 required' if $@;
-
-plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
-
-all_pod_coverage_ok( { trustme => [ qr/^(?:BUILD|DEMOLISH)$/ ] } );
diff --git a/t/author/pod.t b/t/author/pod.t
new file mode 100644 (file)
index 0000000..4a34ef1
--- /dev/null
@@ -0,0 +1,5 @@
+use Test::More 0.88;
+use Test::Pod 1.14;
+
+all_pod_files_ok();
+
diff --git a/t/author/podcoverage.t b/t/author/podcoverage.t
new file mode 100644 (file)
index 0000000..2ef80f1
--- /dev/null
@@ -0,0 +1,8 @@
+use strict;
+use warnings;
+use Test::More;
+use Test::Pod::Coverage 1.04;
+use Pod::Coverage 0.20;
+
+all_pod_coverage_ok( { trustme => [ qr/^(?:BUILD|DEMOLISH)$/ ] } );
+
similarity index 92%
rename from xt/version_numbers.t
rename to t/author/version_numbers.t
index 4e2fa65..2a04f68 100644 (file)
@@ -9,7 +9,7 @@ use Module::Info;
 use Test::More;
 
 my %versions;
-for my $pm_file ( File::Find::Rule->file->name( qr/\.pm$/ )->in(File::Spec->catdir($Bin, '..', 'lib') ) ) {
+for my $pm_file ( File::Find::Rule->file->name( qr/\.pm$/ )->in(File::Spec->catdir($Bin, '..', '..', 'lib') ) ) {
     my $mod = Module::Info->new_from_file($pm_file);
 
     ( my $stripped_file = $pm_file ) =~ s{.*lib/}{};