[Catalyst-commits] r12513 - in Catalyst-Plugin-Static-Simple/trunk:
. t t/author
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Sun Jan 3 14:48:50 GMT 2010
Author: t0m
Date: 2010-01-03 14:48:49 +0000 (Sun, 03 Jan 2010)
New Revision: 12513
Added:
Catalyst-Plugin-Static-Simple/trunk/t/author/
Catalyst-Plugin-Static-Simple/trunk/t/author/02pod.t
Catalyst-Plugin-Static-Simple/trunk/t/author/03podcoverage.t
Catalyst-Plugin-Static-Simple/trunk/t/author/notabs.t
Removed:
Catalyst-Plugin-Static-Simple/trunk/t/02pod.t
Catalyst-Plugin-Static-Simple/trunk/t/03podcoverage.t
Catalyst-Plugin-Static-Simple/trunk/t/04critic.rc
Catalyst-Plugin-Static-Simple/trunk/t/04critic.t
Modified:
Catalyst-Plugin-Static-Simple/trunk/Changes
Catalyst-Plugin-Static-Simple/trunk/Makefile.PL
Log:
Cleanup author tests
Modified: Catalyst-Plugin-Static-Simple/trunk/Changes
===================================================================
--- Catalyst-Plugin-Static-Simple/trunk/Changes 2010-01-03 14:41:22 UTC (rev 12512)
+++ Catalyst-Plugin-Static-Simple/trunk/Changes 2010-01-03 14:48:49 UTC (rev 12513)
@@ -3,6 +3,9 @@
- Switch to being a Moose role, removing dependencies on
Class::Data::Inheritable and Class::Accessor (Andrey Kostenko in
RT#51089)
+ - Make Pod tests mandatory for authors but never run otherwise
+ - Switch to Test::NoTabs to ensure no tabs, rather than
+ Test::Perl::Critic
0.26 2009-12-06 12:30:00
- Fix Pod to show less nasty method of assigning config by calling
Modified: Catalyst-Plugin-Static-Simple/trunk/Makefile.PL
===================================================================
--- Catalyst-Plugin-Static-Simple/trunk/Makefile.PL 2010-01-03 14:41:22 UTC (rev 12512)
+++ Catalyst-Plugin-Static-Simple/trunk/Makefile.PL 2010-01-03 14:48:49 UTC (rev 12513)
@@ -1,6 +1,8 @@
use strict;
use warnings;
use inc::Module::Install 0.91;
+use Module::Install::AuthorRequires;
+use Module::Install::AuthorTests;
name 'Catalyst-Plugin-Static-Simple';
all_from 'lib/Catalyst/Plugin/Static/Simple.pm';
@@ -11,6 +13,14 @@
requires 'Moose';
requires 'namespace::autoclean';
+test_requires 'Test::More';
+
+author_requires 'Test::NoTabs';
+author_requires 'Test::Pod' => '1.14';
+author_requires 'Test::Pod::Coverage' => '1.04';
+
+author_tests 't/author';
+
if( can_use 'Catalyst::Plugin::SubRequest' ) {
unless( can_use 'Catalyst::Plugin::SubRequest' => '0.08' ) {
print "** WARNING **\n"
Deleted: Catalyst-Plugin-Static-Simple/trunk/t/02pod.t
===================================================================
--- Catalyst-Plugin-Static-Simple/trunk/t/02pod.t 2010-01-03 14:41:22 UTC (rev 12512)
+++ Catalyst-Plugin-Static-Simple/trunk/t/02pod.t 2010-01-03 14:48:49 UTC (rev 12513)
@@ -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();
Deleted: Catalyst-Plugin-Static-Simple/trunk/t/03podcoverage.t
===================================================================
--- Catalyst-Plugin-Static-Simple/trunk/t/03podcoverage.t 2010-01-03 14:41:22 UTC (rev 12512)
+++ Catalyst-Plugin-Static-Simple/trunk/t/03podcoverage.t 2010-01-03 14:48:49 UTC (rev 12513)
@@ -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();
Deleted: Catalyst-Plugin-Static-Simple/trunk/t/04critic.rc
===================================================================
--- Catalyst-Plugin-Static-Simple/trunk/t/04critic.rc 2010-01-03 14:41:22 UTC (rev 12512)
+++ Catalyst-Plugin-Static-Simple/trunk/t/04critic.rc 2010-01-03 14:48:49 UTC (rev 12513)
@@ -1,5 +0,0 @@
-include = CodeLayout::ProhibitHardTabs
-only = 1
-
-[CodeLayout::ProhibitHardTabs]
-allow_leading_tabs = 0
\ No newline at end of file
Deleted: Catalyst-Plugin-Static-Simple/trunk/t/04critic.t
===================================================================
--- Catalyst-Plugin-Static-Simple/trunk/t/04critic.t 2010-01-03 14:41:22 UTC (rev 12512)
+++ Catalyst-Plugin-Static-Simple/trunk/t/04critic.t 2010-01-03 14:48:49 UTC (rev 12513)
@@ -1,22 +0,0 @@
-use strict;
-use warnings;
-
-use File::Spec;
-use FindBin ();
-use Test::More;
-
-if ( !-e "$FindBin::Bin/../MANIFEST.SKIP" ) {
- plan skip_all => 'Critic test only for developers.';
-}
-else {
- eval { require Test::Perl::Critic };
- if ( $@ ) {
- plan tests => 1;
- fail( 'You must install Test::Perl::Critic to run 04critic.t' );
- exit;
- }
-}
-
-my $rcfile = File::Spec->catfile( 't', '04critic.rc' );
-Test::Perl::Critic->import( -profile => $rcfile );
-all_critic_ok();
\ No newline at end of file
Copied: Catalyst-Plugin-Static-Simple/trunk/t/author/02pod.t (from rev 12510, Catalyst-Plugin-Static-Simple/trunk/t/02pod.t)
===================================================================
--- Catalyst-Plugin-Static-Simple/trunk/t/author/02pod.t (rev 0)
+++ Catalyst-Plugin-Static-Simple/trunk/t/author/02pod.t 2010-01-03 14:48:49 UTC (rev 12513)
@@ -0,0 +1,7 @@
+use strict;
+use warnings;
+use Test::More;
+
+use Test::Pod 1.14;
+
+all_pod_files_ok();
Copied: Catalyst-Plugin-Static-Simple/trunk/t/author/03podcoverage.t (from rev 12510, Catalyst-Plugin-Static-Simple/trunk/t/03podcoverage.t)
===================================================================
--- Catalyst-Plugin-Static-Simple/trunk/t/author/03podcoverage.t (rev 0)
+++ Catalyst-Plugin-Static-Simple/trunk/t/author/03podcoverage.t 2010-01-03 14:48:49 UTC (rev 12513)
@@ -0,0 +1,5 @@
+use Test::More;
+
+use Test::Pod::Coverage 1.04;
+
+all_pod_coverage_ok();
Added: Catalyst-Plugin-Static-Simple/trunk/t/author/notabs.t
===================================================================
--- Catalyst-Plugin-Static-Simple/trunk/t/author/notabs.t (rev 0)
+++ Catalyst-Plugin-Static-Simple/trunk/t/author/notabs.t 2010-01-03 14:48:49 UTC (rev 12513)
@@ -0,0 +1,7 @@
+use strict;
+use warnings;
+use Test::More;
+use Test::NoTabs;
+
+all_perl_files_ok(qw/lib/);
+
More information about the Catalyst-commits
mailing list