[Moose-commits] r7799 - in MooseX-GlobRef/trunk: . xt
dexter at code2.0beta.co.uk
dexter at code2.0beta.co.uk
Thu Feb 26 16:54:19 GMT 2009
Author: dexter
Date: 2009-02-26 08:54:19 -0800 (Thu, 26 Feb 2009)
New Revision: 7799
Added:
MooseX-GlobRef/trunk/xt/check_changes.t
MooseX-GlobRef/trunk/xt/pod_spell.t
MooseX-GlobRef/trunk/xt/pod_spellrc
MooseX-GlobRef/trunk/xt/prereq.t
MooseX-GlobRef/trunk/xt/signature.t
Removed:
MooseX-GlobRef/trunk/xt/pod_spell.xt
Modified:
MooseX-GlobRef/trunk/Build.PL
MooseX-GlobRef/trunk/MANIFEST
MooseX-GlobRef/trunk/xt/consistent_version_numbers.t
MooseX-GlobRef/trunk/xt/copyright.t
MooseX-GlobRef/trunk/xt/distribution.t
MooseX-GlobRef/trunk/xt/kwalitee.t
MooseX-GlobRef/trunk/xt/perlcritic.t
Log:
* parent module is required only for build.
* Some cleanup in developer's tests.
Modified: MooseX-GlobRef/trunk/Build.PL
===================================================================
--- MooseX-GlobRef/trunk/Build.PL 2009-02-26 16:12:46 UTC (rev 7798)
+++ MooseX-GlobRef/trunk/Build.PL 2009-02-26 16:54:19 UTC (rev 7799)
@@ -17,11 +17,11 @@
requires => {
'perl' => 5.006,
'Moose' => 0.56,
- 'parent' => 0,
},
optional => {
},
build_requires => {
+ 'parent' => 0,
'Test::Unit::Lite' => 0.12,
'Test::Assert' => 0,
},
Modified: MooseX-GlobRef/trunk/MANIFEST
===================================================================
--- MooseX-GlobRef/trunk/MANIFEST 2009-02-26 16:12:46 UTC (rev 7798)
+++ MooseX-GlobRef/trunk/MANIFEST 2009-02-26 16:54:19 UTC (rev 7799)
@@ -23,6 +23,7 @@
t/tlib/MooseX/GlobRefImmutableTest.pm
t/tlib/MooseX/GlobRefTest.pm
t/tlib/MooseX/GlobRefTestSuite.pm
+xt/check_changes.t
xt/consistent_version_numbers.t
xt/copyright.t
xt/cover.pl
@@ -32,5 +33,8 @@
xt/perlcritic.t
xt/perlcriticrc
xt/pod_coverage.t
-xt/pod_spell.xt
+xt/pod_spell.t
+xt/pod_spellrc
xt/pod_syntax.t
+xt/prereq.t
+xt/signature.t
Added: MooseX-GlobRef/trunk/xt/check_changes.t
===================================================================
--- MooseX-GlobRef/trunk/xt/check_changes.t (rev 0)
+++ MooseX-GlobRef/trunk/xt/check_changes.t 2009-02-26 16:54:19 UTC (rev 7799)
@@ -0,0 +1,7 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+use Test::CheckChanges;
+ok_changes();
Modified: MooseX-GlobRef/trunk/xt/consistent_version_numbers.t
===================================================================
--- MooseX-GlobRef/trunk/xt/consistent_version_numbers.t 2009-02-26 16:12:46 UTC (rev 7798)
+++ MooseX-GlobRef/trunk/xt/consistent_version_numbers.t 2009-02-26 16:54:19 UTC (rev 7799)
@@ -12,7 +12,7 @@
my $last_version = undef;
-find({wanted => \&check_version, no_chdir => 1}, 'blib');
+find({wanted => \&check_version, no_chdir => 1}, 'lib');
if (! defined $last_version) {
## no critic (RequireInterpolationOfMetachars)
fail('Failed to find any files with $VERSION');
Modified: MooseX-GlobRef/trunk/xt/copyright.t
===================================================================
--- MooseX-GlobRef/trunk/xt/copyright.t 2009-02-26 16:12:46 UTC (rev 7798)
+++ MooseX-GlobRef/trunk/xt/copyright.t 2009-02-26 16:54:19 UTC (rev 7799)
@@ -19,7 +19,7 @@
my $this_year =
(localtime)[$LOCALTIME_YEAR_FIELD_NUMBER] + $LOCALTIME_YEAR_OFFSET;
my $copyrights_found = 0;
-find({wanted => \&check_file, no_chdir => 1}, 'blib');
+find({wanted => \&check_file, no_chdir => 1}, 'lib');
foreach ( grep { m/^readme/ixms } read_dir(q<.>) ) {
check_file();
} # end foreach
Modified: MooseX-GlobRef/trunk/xt/distribution.t
===================================================================
--- MooseX-GlobRef/trunk/xt/distribution.t 2009-02-26 16:12:46 UTC (rev 7798)
+++ MooseX-GlobRef/trunk/xt/distribution.t 2009-02-26 16:54:19 UTC (rev 7799)
@@ -5,6 +5,8 @@
our $VERSION = '0.999_001';
-# No POD coverage due to complaints about builtins when using Fatal.
-use Test::Distribution ();
-Test::Distribution->import( distversion => 1, not => [ 'pod', 'podcover', 'prereq' ] );
+require Test::Distribution;
+Test::Distribution->import(
+ distversion => 1,
+ only => [ 'description', 'manifest' ]
+);
Modified: MooseX-GlobRef/trunk/xt/kwalitee.t
===================================================================
--- MooseX-GlobRef/trunk/xt/kwalitee.t 2009-02-26 16:12:46 UTC (rev 7798)
+++ MooseX-GlobRef/trunk/xt/kwalitee.t 2009-02-26 16:54:19 UTC (rev 7799)
@@ -5,6 +5,4 @@
use Test::More;
-eval { require Test::Kwalitee; Test::Kwalitee->import() };
-
-plan( skip_all => 'Test::Kwalitee not installed; skipping' ) if $@;
+use Test::Kwalitee;
Modified: MooseX-GlobRef/trunk/xt/perlcritic.t
===================================================================
--- MooseX-GlobRef/trunk/xt/perlcritic.t 2009-02-26 16:12:46 UTC (rev 7798)
+++ MooseX-GlobRef/trunk/xt/perlcritic.t 2009-02-26 16:54:19 UTC (rev 7799)
@@ -5,13 +5,9 @@
use File::Spec;
use Test::More;
-eval { require Test::Perl::Critic; };
+require Test::Perl::Critic;
-if ($@) {
- my $msg = 'Test::Perl::Critic required to criticise code';
- plan( skip_all => $msg );
-}
-
my $rcfile = File::Spec->catfile( 'xt', 'perlcriticrc' );
Test::Perl::Critic->import( -profile => $rcfile );
+
all_critic_ok();
Copied: MooseX-GlobRef/trunk/xt/pod_spell.t (from rev 7793, MooseX-GlobRef/trunk/xt/pod_spell.xt)
===================================================================
--- MooseX-GlobRef/trunk/xt/pod_spell.t (rev 0)
+++ MooseX-GlobRef/trunk/xt/pod_spell.t 2009-02-26 16:54:19 UTC (rev 7799)
@@ -0,0 +1,22 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+use File::Basename;
+use File::Spec;
+use Cwd;
+
+BEGIN {
+ chdir dirname(__FILE__) or die "$!";
+ chdir '..' or die "$!";
+};
+
+use Test::More;
+use Test::Spelling;
+
+open my $fh, File::Spec->catfile(dirname(__FILE__), 'pod_spellrc') or die $!;
+add_stopwords( <$fh> );
+$ENV{LANG} = 'C';
+
+all_pod_files_spelling_ok('lib');
Property changes on: MooseX-GlobRef/trunk/xt/pod_spell.t
___________________________________________________________________
Name: svn:mergeinfo
+
Deleted: MooseX-GlobRef/trunk/xt/pod_spell.xt
===================================================================
--- MooseX-GlobRef/trunk/xt/pod_spell.xt 2009-02-26 16:12:46 UTC (rev 7798)
+++ MooseX-GlobRef/trunk/xt/pod_spell.xt 2009-02-26 16:54:19 UTC (rev 7799)
@@ -1,18 +0,0 @@
-#!/usr/bin/perl
-
-use strict;
-use warnings;
-
-use Test::More;
-
-eval q{ use Test::Spelling };
-plan skip_all => "Test::Spelling is not installed." if $@;
-
-set_spell_cmd('aspell -a -d en');
-add_stopwords( map { split /[\s\:\-]/ } <DATA> );
-$ENV{LANG} = 'C';
-all_pod_files_spelling_ok('lib');
-
-__DATA__
-metaclass
-Roszatycki
Copied: MooseX-GlobRef/trunk/xt/pod_spellrc (from rev 7793, MooseX-GlobRef/trunk/xt/pod_spell.xt)
===================================================================
--- MooseX-GlobRef/trunk/xt/pod_spellrc (rev 0)
+++ MooseX-GlobRef/trunk/xt/pod_spellrc 2009-02-26 16:54:19 UTC (rev 7799)
@@ -0,0 +1,5 @@
+maxdepth
+metaclass
+Piotr
+Roszatycki
+Str
Property changes on: MooseX-GlobRef/trunk/xt/pod_spellrc
___________________________________________________________________
Name: svn:mergeinfo
+
Added: MooseX-GlobRef/trunk/xt/prereq.t
===================================================================
--- MooseX-GlobRef/trunk/xt/prereq.t (rev 0)
+++ MooseX-GlobRef/trunk/xt/prereq.t 2009-02-26 16:54:19 UTC (rev 7799)
@@ -0,0 +1,9 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+use Test::More;
+use Test::Prereq::Build;
+
+prereq_ok();
Added: MooseX-GlobRef/trunk/xt/signature.t
===================================================================
--- MooseX-GlobRef/trunk/xt/signature.t (rev 0)
+++ MooseX-GlobRef/trunk/xt/signature.t 2009-02-26 16:54:19 UTC (rev 7799)
@@ -0,0 +1,9 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+use Test::More tests => 1;
+use Test::Signature;
+
+signature_ok();
More information about the Moose-commits
mailing list