[Catalyst-commits] r13619 - in Catalyst-Engine-Apache/trunk: . t

t0m at dev.catalyst.perl.org t0m at dev.catalyst.perl.org
Wed Sep 29 00:27:24 GMT 2010


Author: t0m
Date: 2010-09-29 01:27:24 +0100 (Wed, 29 Sep 2010)
New Revision: 13619

Added:
   Catalyst-Engine-Apache/trunk/t/00compiles.t
Removed:
   Catalyst-Engine-Apache/trunk/t/02pod.t
   Catalyst-Engine-Apache/trunk/t/03podcoverage.t
   Catalyst-Engine-Apache/trunk/t/04critic.rc
   Catalyst-Engine-Apache/trunk/t/04critic.t
Modified:
   Catalyst-Engine-Apache/trunk/Makefile.PL
Log:
Update tests somewhat

Modified: Catalyst-Engine-Apache/trunk/Makefile.PL
===================================================================
--- Catalyst-Engine-Apache/trunk/Makefile.PL	2010-09-29 00:27:11 UTC (rev 13618)
+++ Catalyst-Engine-Apache/trunk/Makefile.PL	2010-09-29 00:27:24 UTC (rev 13619)
@@ -1,15 +1,22 @@
 use strict;
 use warnings;
 use inc::Module::Install 0.91;
+use Module::Install::AuthorRequires;
+use Module::Install::AuthorTests;
 
 name 'Catalyst-Engine-Apache';
 all_from 'lib/Catalyst/Engine/Apache.pm';
 
 requires 'Catalyst::Runtime';
 
+test_requires 'Test::More' => '0.88';
+
 tests 't/0*.t';
 
 auto_install;
 resources repository => 'http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-Engine-Apache/trunk';
 
+author_requires 'Test::NoTabs';
+author_tests 't/author';
+
 WriteAll;

Added: Catalyst-Engine-Apache/trunk/t/00compiles.t
===================================================================
--- Catalyst-Engine-Apache/trunk/t/00compiles.t	                        (rev 0)
+++ Catalyst-Engine-Apache/trunk/t/00compiles.t	2010-09-29 00:27:24 UTC (rev 13619)
@@ -0,0 +1,9 @@
+use strict;
+use warnings;
+
+use Test::More;
+
+use_ok 'Catalyst::Engine::Apache';
+
+done_testing;
+

Deleted: Catalyst-Engine-Apache/trunk/t/02pod.t
===================================================================
--- Catalyst-Engine-Apache/trunk/t/02pod.t	2010-09-29 00:27:11 UTC (rev 13618)
+++ Catalyst-Engine-Apache/trunk/t/02pod.t	2010-09-29 00:27:24 UTC (rev 13619)
@@ -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-Engine-Apache/trunk/t/03podcoverage.t
===================================================================
--- Catalyst-Engine-Apache/trunk/t/03podcoverage.t	2010-09-29 00:27:11 UTC (rev 13618)
+++ Catalyst-Engine-Apache/trunk/t/03podcoverage.t	2010-09-29 00:27:24 UTC (rev 13619)
@@ -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-Engine-Apache/trunk/t/04critic.rc
===================================================================
--- Catalyst-Engine-Apache/trunk/t/04critic.rc	2010-09-29 00:27:11 UTC (rev 13618)
+++ Catalyst-Engine-Apache/trunk/t/04critic.rc	2010-09-29 00:27:24 UTC (rev 13619)
@@ -1,5 +0,0 @@
-include  = CodeLayout::ProhibitHardTabs
-only     = 1
-
-[CodeLayout::ProhibitHardTabs]
-allow_leading_tabs = 0
\ No newline at end of file

Deleted: Catalyst-Engine-Apache/trunk/t/04critic.t
===================================================================
--- Catalyst-Engine-Apache/trunk/t/04critic.t	2010-09-29 00:27:11 UTC (rev 13618)
+++ Catalyst-Engine-Apache/trunk/t/04critic.t	2010-09-29 00:27:24 UTC (rev 13619)
@@ -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




More information about the Catalyst-commits mailing list