[Catalyst-commits] r12755 - in
trunk/Catalyst-Plugin-UploadProgress: . t t/author
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Thu Jan 28 00:20:09 GMT 2010
Author: t0m
Date: 2010-01-28 00:20:09 +0000 (Thu, 28 Jan 2010)
New Revision: 12755
Added:
trunk/Catalyst-Plugin-UploadProgress/t/author/
trunk/Catalyst-Plugin-UploadProgress/t/author/notabs.t
trunk/Catalyst-Plugin-UploadProgress/t/author/pod.t
trunk/Catalyst-Plugin-UploadProgress/t/author/podcoverage.t
Removed:
trunk/Catalyst-Plugin-UploadProgress/t/02pod.t
trunk/Catalyst-Plugin-UploadProgress/t/03podcoverage.t
trunk/Catalyst-Plugin-UploadProgress/t/04critic.rc
trunk/Catalyst-Plugin-UploadProgress/t/04critic.t
Modified:
trunk/Catalyst-Plugin-UploadProgress/Makefile.PL
Log:
Author requires and author tests for pod/coverage. critic to notabs.. General dist cleanup
Modified: trunk/Catalyst-Plugin-UploadProgress/Makefile.PL
===================================================================
--- trunk/Catalyst-Plugin-UploadProgress/Makefile.PL 2010-01-28 00:15:32 UTC (rev 12754)
+++ trunk/Catalyst-Plugin-UploadProgress/Makefile.PL 2010-01-28 00:20:09 UTC (rev 12755)
@@ -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-UploadProgress';
all_from 'lib/Catalyst/Plugin/UploadProgress.pm';
@@ -9,7 +11,10 @@
requires 'Moose';
requires 'namespace::autoclean';
-tests 't/*.t';
+author_requires 'Test::Pod' => '1.14';
+author_requires 'Test::Pod::Coverage' => '1.04';
+author_requires 'Test::NoTabs';
+author_tests 't/author';
auto_install;
resources repository => 'http://dev.catalyst.perl.org/repos/Catalyst/trunk/Catalyst-Plugin-UploadProgress/';
Deleted: trunk/Catalyst-Plugin-UploadProgress/t/02pod.t
===================================================================
--- trunk/Catalyst-Plugin-UploadProgress/t/02pod.t 2010-01-28 00:15:32 UTC (rev 12754)
+++ trunk/Catalyst-Plugin-UploadProgress/t/02pod.t 2010-01-28 00:20:09 UTC (rev 12755)
@@ -1,8 +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} || -f 'MANIFEST.SKIP';
-
-all_pod_files_ok();
Deleted: trunk/Catalyst-Plugin-UploadProgress/t/03podcoverage.t
===================================================================
--- trunk/Catalyst-Plugin-UploadProgress/t/03podcoverage.t 2010-01-28 00:15:32 UTC (rev 12754)
+++ trunk/Catalyst-Plugin-UploadProgress/t/03podcoverage.t 2010-01-28 00:20:09 UTC (rev 12755)
@@ -1,8 +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} || -f 'MANIFEST.SKIP';
-
-all_pod_coverage_ok();
Deleted: trunk/Catalyst-Plugin-UploadProgress/t/04critic.rc
===================================================================
--- trunk/Catalyst-Plugin-UploadProgress/t/04critic.rc 2010-01-28 00:15:32 UTC (rev 12754)
+++ trunk/Catalyst-Plugin-UploadProgress/t/04critic.rc 2010-01-28 00:20:09 UTC (rev 12755)
@@ -1,5 +0,0 @@
-include = CodeLayout::ProhibitHardTabs
-only = 1
-
-[CodeLayout::ProhibitHardTabs]
-allow_leading_tabs = 0
\ No newline at end of file
Deleted: trunk/Catalyst-Plugin-UploadProgress/t/04critic.t
===================================================================
--- trunk/Catalyst-Plugin-UploadProgress/t/04critic.t 2010-01-28 00:15:32 UTC (rev 12754)
+++ trunk/Catalyst-Plugin-UploadProgress/t/04critic.t 2010-01-28 00:20:09 UTC (rev 12755)
@@ -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: trunk/Catalyst-Plugin-UploadProgress/t/author/notabs.t (from rev 12750, trunk/Catalyst-Plugin-UploadProgress/t/04critic.t)
===================================================================
--- trunk/Catalyst-Plugin-UploadProgress/t/author/notabs.t (rev 0)
+++ trunk/Catalyst-Plugin-UploadProgress/t/author/notabs.t 2010-01-28 00:20:09 UTC (rev 12755)
@@ -0,0 +1,10 @@
+use strict;
+use warnings;
+
+use File::Spec;
+use FindBin ();
+use Test::More;
+use Test::NoTabs;
+
+all_perl_files_ok(qw/lib/);
+
Copied: trunk/Catalyst-Plugin-UploadProgress/t/author/pod.t (from rev 12750, trunk/Catalyst-Plugin-UploadProgress/t/02pod.t)
===================================================================
--- trunk/Catalyst-Plugin-UploadProgress/t/author/pod.t (rev 0)
+++ trunk/Catalyst-Plugin-UploadProgress/t/author/pod.t 2010-01-28 00:20:09 UTC (rev 12755)
@@ -0,0 +1,4 @@
+use Test::More;
+use Test::Pod 1.14;
+
+all_pod_files_ok();
Copied: trunk/Catalyst-Plugin-UploadProgress/t/author/podcoverage.t (from rev 12750, trunk/Catalyst-Plugin-UploadProgress/t/03podcoverage.t)
===================================================================
--- trunk/Catalyst-Plugin-UploadProgress/t/author/podcoverage.t (rev 0)
+++ trunk/Catalyst-Plugin-UploadProgress/t/author/podcoverage.t 2010-01-28 00:20:09 UTC (rev 12755)
@@ -0,0 +1,4 @@
+use Test::More;
+use Test::Pod::Coverage 1.04;
+
+all_pod_coverage_ok();
More information about the Catalyst-commits
mailing list