From: Sebastian Riedel Date: Fri, 25 Mar 2005 15:08:27 +0000 (+0000) Subject: added Test::Pod support X-Git-Tag: 5.7099_04~1687 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=5a8fd7e9d4cca2af0237e1659f061cc64618bfe6 added Test::Pod support --- diff --git a/Changes b/Changes index 0bbd53a..f01d347 100644 --- a/Changes +++ b/Changes @@ -3,6 +3,7 @@ This file documents the revision history for Perl extension Catalyst. 5.00 XXX XXX XX XX:00:00 2005 - whole new core for private action inheritance - problems with mod_perl2 fixed + - added Test::Pod support 4.34 Wed Mar 23 07:00:00 2005 - added some messages to Makefile.PL diff --git a/lib/Catalyst/Helper.pm b/lib/Catalyst/Helper.pm index ed6dd3c..8c392cb 100644 --- a/lib/Catalyst/Helper.pm +++ b/lib/Catalyst/Helper.pm @@ -308,7 +308,16 @@ use_ok( Catalyst::Test, '$name' ); ok( request('/')->is_success ); EOF - $self->mk_file( "$t\/02podcoverage.t", <<"EOF"); + $self->mk_file( "$t\/02pod.t", <<"EOF"); +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(); +EOF + $self->mk_file( "$t\/03podcoverage.t", <<"EOF"); use Test::More; eval "use Test::Pod::Coverage 1.04"; diff --git a/t/02pod.t b/t/02pod.t new file mode 100644 index 0000000..1647794 --- /dev/null +++ b/t/02pod.t @@ -0,0 +1,7 @@ +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/02podcoverage.t b/t/03podcoverage.t similarity index 100% rename from t/02podcoverage.t rename to t/03podcoverage.t diff --git a/t/03plainaction.t b/t/04plainaction.t similarity index 100% rename from t/03plainaction.t rename to t/04plainaction.t diff --git a/t/04regexaction.t b/t/05regexaction.t similarity index 100% rename from t/04regexaction.t rename to t/05regexaction.t diff --git a/t/05parameters.t b/t/06parameters.t similarity index 100% rename from t/05parameters.t rename to t/06parameters.t diff --git a/t/06arguments.t b/t/07arguments.t similarity index 100% rename from t/06arguments.t rename to t/07arguments.t diff --git a/t/07headers.t b/t/08headers.t similarity index 100% rename from t/07headers.t rename to t/08headers.t diff --git a/t/08cookies.t b/t/09cookies.t similarity index 100% rename from t/08cookies.t rename to t/09cookies.t diff --git a/t/09forward.t b/t/10forward.t similarity index 100% rename from t/09forward.t rename to t/10forward.t diff --git a/t/10redirect.t b/t/11redirect.t similarity index 100% rename from t/10redirect.t rename to t/11redirect.t diff --git a/t/11stash.t b/t/12stash.t similarity index 100% rename from t/11stash.t rename to t/12stash.t diff --git a/t/12default.t b/t/13default.t similarity index 100% rename from t/12default.t rename to t/13default.t diff --git a/t/13beginend.t b/t/14beginend.t similarity index 100% rename from t/13beginend.t rename to t/14beginend.t diff --git a/t/14connection.t b/t/15connection.t similarity index 100% rename from t/14connection.t rename to t/15connection.t diff --git a/t/15post.t b/t/16post.t similarity index 100% rename from t/15post.t rename to t/16post.t diff --git a/t/16uri.t b/t/17uri.t similarity index 100% rename from t/16uri.t rename to t/17uri.t diff --git a/t/17inheritance.t b/t/18inheritance.t similarity index 100% rename from t/17inheritance.t rename to t/18inheritance.t