Make pod tests author only
Tomas Doran [Sun, 7 Mar 2010 20:50:03 +0000 (20:50 +0000)]
Changes
Makefile.PL
t/02pod.t [deleted file]
t/03podcoverage.t [deleted file]
t/author/pod.t [new file with mode: 0644]
t/author/pod_spelling.t [moved from t/04pod_spelling.t with 61% similarity]
t/author/podcoverage.t [new file with mode: 0644]

diff --git a/Changes b/Changes
index 02124ab..d278e99 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,10 +1,11 @@
+   - Make Pod tests author only.
+
 1.011 2009-06-26
    - Added true/false check to _debug option
 
 1.010 2009-05-14
    - Moved tests out to t/lib/ (dhoss)
 
-
    - Add debug when a user is found, but passwords don't match (abraxxa)
 
 1.009  2009-01-04
index d344e08..40c9275 100644 (file)
@@ -1,4 +1,6 @@
 use inc::Module::Install 0.87;
+use Module::Install::AuthorRequires;
+use Module::Install::AuthorTests;
 
 name 'Catalyst-Authentication-Credential-HTTP';
 all_from 'lib/Catalyst/Authentication/Credential/HTTP.pm';
@@ -12,10 +14,15 @@ requires 'Test::MockObject';
 requires 'URI::Escape';
 requires 'Class::Accessor::Fast';
 
+author_requires 'Test::Pod' => '1.14';
+author_requires 'Test::Spelling' => '0.11';
+author_requires 'Test::Pod::Coverage' => '1.04';
+
 resources repository => 'http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-Authentication-Credential-HTTP';
 
+author_tests 't/author';
+
 auto_install;
-resources repository => 'http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-Authentication-Credential-HTTP/1.000/trunk/';
 
 WriteAll;
 
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 d91be5e..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-use Test::More;
-
-eval "use Test::Pod::Coverage 1.04";
-plan skip_all => 'Test::Pod::Coverage 1.04 required' if $@;
-plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
-
-all_pod_coverage_ok();
diff --git a/t/author/pod.t b/t/author/pod.t
new file mode 100644 (file)
index 0000000..8b24c40
--- /dev/null
@@ -0,0 +1,5 @@
+use Test::More;
+
+use Test::Pod 1.14;
+
+all_pod_files_ok();
similarity index 61%
rename from t/04pod_spelling.t
rename to t/author/pod_spelling.t
index 85e33d5..82ddad6 100644 (file)
@@ -3,9 +3,7 @@ use strict;
 use warnings;
 use Test::More;
 
-eval 'use Test::Spelling 0.11';
-plan skip_all => 'Test::Spelling 0.11 not installed' if $@;
-plan skip_all => 'set TEST_SPELLING to enable this test' unless $ENV{TEST_SPELLING};
+use Test::Spelling 0.11;
 
 set_spell_cmd('aspell list');
 
@@ -14,6 +12,7 @@ add_stopwords( grep { defined $_ && length $_ } <DATA>);
 all_pod_files_spelling_ok();
 
 __DATA__
+dhoss
 behaviour
 Doran
 Kiefer
diff --git a/t/author/podcoverage.t b/t/author/podcoverage.t
new file mode 100644 (file)
index 0000000..66338a3
--- /dev/null
@@ -0,0 +1,5 @@
+use Test::More;
+
+use Test::Pod::Coverage 1.04;
+
+all_pod_coverage_ok();