From: Tomas Doran Date: Sun, 7 Mar 2010 20:50:03 +0000 (+0000) Subject: Make pod tests author only X-Git-Tag: v1.012~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Authentication-Credential-HTTP.git;a=commitdiff_plain;h=ac0351e16fa05aaed6d887258256374cad670497 Make pod tests author only --- diff --git a/Changes b/Changes index 02124ab..d278e99 100644 --- 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 diff --git a/Makefile.PL b/Makefile.PL index d344e08..40c9275 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -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 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 index d91be5e..0000000 --- a/t/03podcoverage.t +++ /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 index 0000000..8b24c40 --- /dev/null +++ b/t/author/pod.t @@ -0,0 +1,5 @@ +use Test::More; + +use Test::Pod 1.14; + +all_pod_files_ok(); diff --git a/t/04pod_spelling.t b/t/author/pod_spelling.t similarity index 61% rename from t/04pod_spelling.t rename to t/author/pod_spelling.t index 85e33d5..82ddad6 100644 --- a/t/04pod_spelling.t +++ b/t/author/pod_spelling.t @@ -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 $_ } ); 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 index 0000000..66338a3 --- /dev/null +++ b/t/author/podcoverage.t @@ -0,0 +1,5 @@ +use Test::More; + +use Test::Pod::Coverage 1.04; + +all_pod_coverage_ok();