Permalink
Browse files

Add a .pm file for tests

Not sure how this ever worked. CPAN Testers reported a bunch of
FAILs saying "Unable to find main_module in the distribution" in
the tests, because there was no .pm. This adds one.

Test failures looked like: http://www.cpantesters.org/cpan/report/91cde38e-034b-11e3-8540-98a55735fcd0
  • Loading branch information...
1 parent 5b00678 commit 2633c113049016ff3f6981dca01d68316c55807d @doherty committed Aug 13, 2013
Showing with 72 additions and 49 deletions.
  1. +33 −32 Changes
  2. +31 −8 MANIFEST.SKIP
  3. +8 −9 t/01-test-manifest.t
View
65 Changes
@@ -1,77 +1,78 @@
Changelog for Dist::Zilla::PluginBundle::TestingMania
{{$NEXT}}
+ - Fix spurious test failures
0.19 2013-03-02
- * Allow setting your maximum target perl version explicitly
+ - Allow setting your maximum target perl version explicitly
with max_target_perl [xdg++]
0.18 2012-07-29
- * Allow setting is_strict and has_version for Test::Version plugin
+ - Allow setting is_strict and has_version for Test::Version plugin
0.17 2012-06-16
- * Use decimal version numbers for prereqs
+ - Use decimal version numbers for prereqs
0.16 2012-06-16
- * Require JSON::PP 2.27103
- * Allow specifying enable/disable multiple times in dist.ini instead of a comma-separated list
+ - Require JSON::PP 2.27103
+ - Allow specifying enable/disable multiple times in dist.ini instead of a comma-separated list
0.15 2011-12-15
- * List prereqs as prereqs instead of use-ing them [Caleb Cushing]
- * Use DZP::Test::EOL (an author test) instead of EOLTests (a release test) [GH #13, thanks to Caleb Cushing]
+ - List prereqs as prereqs instead of use-ing them [Caleb Cushing]
+ - Use DZP::Test::EOL (an author test) instead of EOLTests (a release test) [GH #13, thanks to Caleb Cushing]
0.14 2011-09-08
- * Packaging updates
+ - Packaging updates
v0.13 2011-09-08
- * Add mention of Test::Pod::LinkCheck plugin
- * Update several Test:: plugins
+ - Add mention of Test::Pod::LinkCheck plugin
+ - Update several Test:: plugins
0.012 2011-06-05
- * Add a Test::Version plugin by xenoterrocide; remove superseded plugins
- * Add a Test::Mojibake plugin by creaktive
+ - Add a Test::Version plugin by xenoterrocide; remove superseded plugins
+ - Add a Test::Mojibake plugin by creaktive
0.011 2011-05-09
- * Allow setting a perlcritic config file
+ - Allow setting a perlcritic config file
0.010 2011-04-20
- * Forgotten hash key renamed [rstauner]
- * Added tests
+ - Forgotten hash key renamed [rstauner]
+ - Added tests
0.009 2011-04-19
- * Renamed options for clarity: add -> enable; skip -> disable
- * Don't require the absolute latest prerequisites
- * Require a version of the Test::CPAN::Meta::JSON plugin that prunes itself
+ - Renamed options for clarity: add -> enable; skip -> disable
+ - Don't require the absolute latest prerequisites
+ - Require a version of the Test::CPAN::Meta::JSON plugin that prunes itself
when META.json isn't present. Users no longer need to disable this test
in that situation.
0.008 2011-04-16
- * Include a test for META.json - disable it if your dists don't include this
- * Removed ProgCriticTests (was disabled by default)
- * Removed CheckChangesTests
- * Documentation improvements
+ - Include a test for META.json - disable it if your dists don't include this
+ - Removed ProgCriticTests (was disabled by default)
+ - Removed CheckChangesTests
+ - Documentation improvements
0.007 2011-04-12
- * New prereq names
+ - New prereq names
0.006 2011-04-04
- * Set default changelog; thanks to mjgardner
+ - Set default changelog; thanks to mjgardner
0.005 2011-04-02
- * Added ChangesTests
+ - Added ChangesTests
0.004 2011-02-15
- * Removed PodLinkTests; the dependencies are too immature
+ - Removed PodLinkTests; the dependencies are too immature
0.003 2011-01-31
- * Removed ApacheTests
- * Removed PodSpellingTests, which has a fail in the dependency chain, wasn't
+ - Removed ApacheTests
+ - Removed PodSpellingTests, which has a fail in the dependency chain, wasn't
enabled by default, and is too annoying to bear.
- * Added PodLinkTests
+ - Added PodLinkTests
0.002 2010-11-28
- * Flesh out the chain of dependencies to get full functionality
- * Use Perl_5 license
+ - Flesh out the chain of dependencies to get full functionality
+ - Use Perl_5 license
0.001 2010-10-18
- * Initial version
+ - Initial version
View
@@ -1,3 +1,5 @@
+
+#!start included /home/mike/perl5/perlbrew/perls/perl-5.18.0/lib/5.18.0/ExtUtils/MANIFEST.SKIP
# Avoid version control files.
\bRCS\b
\bCVS\b
@@ -7,6 +9,12 @@
\B\.git\b
\B\.gitignore\b
\b_darcs\b
+\B\.cvsignore$
+
+# Avoid VMS specific MakeMaker generated files
+\bDescrip.MMS$
+\bDESCRIP.MMS$
+\bdescrip.mms$
# Avoid Makemaker generated and utility files.
\bMANIFEST\.bak
@@ -20,21 +28,36 @@
# Avoid Module::Build generated and utility files.
\bBuild$
\b_build/
+\bBuild.bat$
+\bBuild.COM$
+\bBUILD.COM$
+\bbuild.com$
# Avoid temp and backup files.
~$
\.old$
\#$
\b\.#
\.bak$
-\.orig$
+\.tmp$
+\.#
+\.rej$
+
+# Avoid OS-specific files/dirs
+# Mac OSX metadata
+\B\.DS_Store
+# Mac OSX SMB mount metadata files
+\B\._
-# Avoid Devel::Cover files.
+# Avoid Devel::Cover and Devel::CoverX::Covered files.
\bcover_db\b
+\bcovered\b
+
+# Avoid MYMETA files
+^MYMETA\.
+#!end included /home/mike/perl5/perlbrew/perls/perl-5.18.0/lib/5.18.0/ExtUtils/MANIFEST.SKIP
+
+# Avoid archives of this distribution
+\bDist-Zilla-PluginBundle-TestingMania-[\d\.\_]+
-# Specific to this project
-^dist\.ini$
-^MANIFEST\.SKIP$
-^\.build$
-^weaver\.ini$
-^Makefile\.PL$
+\.build\b
View
@@ -9,14 +9,15 @@ subtest 'default' => sub {
plan tests => 2;
my $tzil = Builder->from_config(
- { dist_root => 'corpus/dist/DZT' },
+ { dist_root => 'corpus/dist/DZT-Sample' },
{ add_files => {
'source/dist.ini' => simple_ini(
'GatherDir',
'MetaYAML',
'MetaJSON',
'@TestingMania'
- )
+ ),
+ 'source/lib/DZT/Sample.pm' => '',
}
},
);
@@ -47,7 +48,8 @@ subtest 'enable' => sub {
'MetaYAML',
'MetaJSON',
['@TestingMania' => {enable => 'ConsistentVersionTest'} ],
- )
+ ),
+ 'source/lib/DZT/Sample.pm' => '',
}
}
);
@@ -69,7 +71,8 @@ subtest 'disable' => sub {
'MetaYAML',
'MetaJSON',
['@TestingMania' => { disable => [qw(Test::EOL NoTabsTests)] } ],
- )
+ ),
+ 'source/lib/DZT/Sample.pm' => '',
}
}
);
@@ -91,6 +94,7 @@ subtest 'nonexistent test' => sub {
'source/dist.ini' => simple_ini(
('GatherDir', 'MetaYAML', 'MetaJSON', ['@TestingMania' => { disable => 'Nonexistent', enable => 'Test::EOL' }])
),
+ 'source/lib/DZT/Sample.pm' => '',
},
},
);
@@ -109,8 +113,3 @@ subtest 'nonexistent test' => sub {
xt/release/mojibake.t
)];
};
-
-END { # Remove (empty) dir created by building the dists
- require File::Path;
- File::Path::rmtree('tmp');
-}

0 comments on commit 2633c11

Please sign in to comment.