diff --git a/META.json b/META.json index 7766b1d..6a9f4c6 100644 --- a/META.json +++ b/META.json @@ -36,7 +36,11 @@ "Pod::Wordlist" : "0", "Test::Fixme" : "0", "Test::Kwalitee" : "0", - "Test::Spelling" : "0.12" + "Test::Kwalitee::Extra" : "0", + "Test::More" : "0.96", + "Test::Pod" : "0", + "Test::Spelling" : "0.12", + "Test::Vars" : "0" } }, "runtime" : { @@ -51,19 +55,22 @@ "NetPacket::TCP" : "0", "Pod::Usage" : "0", "Test::Fixme" : "0", - "Test::More" : "0.88", + "Test::More" : "0.96", "perl" : "5.008005" } }, "test" : { "requires" : { - "Pod::Wordlist" : "0", - "Test::Kwalitee" : "0", - "Test::More" : "0.88", - "Test::Spelling" : "0.12" + "Test::More" : "0.96" } } }, + "provides" : { + "App::redis_traffic_stats" : { + "file" : "lib/App/redis_traffic_stats.pm", + "version" : "1.004" + } + }, "release_status" : "stable", "resources" : { "bugtracker" : { diff --git a/cpanfile b/cpanfile index d946e3a..ef20a65 100644 --- a/cpanfile +++ b/cpanfile @@ -24,12 +24,13 @@ on develop => sub { requires 'Pod::Wordlist'; requires 'Test::Fixme'; requires 'Test::Kwalitee'; + requires 'Test::Kwalitee::Extra'; requires 'Test::Spelling', '0.12'; + requires 'Test::More', '0.96'; + requires 'Test::Pod'; + requires 'Test::Vars'; }; on test => sub { - requires 'Test::More', '0.88'; - requires 'Pod::Wordlist'; - requires 'Test::Kwalitee'; - requires 'Test::Spelling', '0.12'; + requires 'Test::More', '0.96'; }; diff --git a/dist.ini b/dist.ini index 8fdae08..c7c4708 100644 --- a/dist.ini +++ b/dist.ini @@ -12,3 +12,5 @@ copyright_year = 2014 [NextRelease] time_zone = UTC + +[MetaProvides::Package] diff --git a/t/author-pod-spell.t b/t/author-pod-spell.t index 84994e7..9b9ff8c 100644 --- a/t/author-pod-spell.t +++ b/t/author-pod-spell.t @@ -10,9 +10,11 @@ use strict; use warnings; use Test::More; -# generated by Dist::Zilla::Plugin::Test::PodSpelling 2.006001 -use Test::Spelling 0.12; -use Pod::Wordlist; +eval { require Test::Spelling; Test::Spelling->VERSION(0.12); Test::Spelling->import(); }; +plan(skip_all => "Test::Spelling not installed: $@; skipping") if $@; + +eval { require Pod::Wordlist; Pod::Wordlist->import(); }; +plan(skip_all => "Pod::Wordlist not installed: $@; skipping") if $@; add_stopwords(); @@ -22,6 +24,4 @@ HIROSE Masaaki hirose31 lib -Foo -Bar Redis diff --git a/t/release-fixme.t b/t/release-fixme.t index 50f5cab..adf2687 100644 --- a/t/release-fixme.t +++ b/t/release-fixme.t @@ -11,6 +11,9 @@ BEGIN { # This test is generated by Dist::Zilla::Plugin::Test::Fixme use strict; use warnings; +use Test::More; + +eval { require Test::Fixme; Test::Fixme->import(); }; +plan(skip_all => "Test::Fixme not installed: $@; skipping") if $@; -use Test::Fixme; run_tests(); diff --git a/t/release-kwalitee-extra.t b/t/release-kwalitee-extra.t new file mode 100644 index 0000000..92aa0f8 --- /dev/null +++ b/t/release-kwalitee-extra.t @@ -0,0 +1,16 @@ + +BEGIN { + unless ($ENV{RELEASE_TESTING}) { + require Test::More; + Test::More::plan(skip_all => 'these tests are for release candidate testing'); + } +} + +use strict; +use warnings; +use Test::More; +eval { require Test::Kwalitee::Extra; Test::Kwalitee::Extra->import(qw(:experimental)); }; +#eval { require Test::Kwalitee::Extra; Test::Kwalitee::Extra->import(qw(:experimental !prereq_matches_use !build_prereq_matches_use)); }; +plan(skip_all => "Test::Kwalitee::Extra not installed: $@; skipping") if $@; + +#done_testing; diff --git a/t/release-kwalitee.t b/t/release-kwalitee.t index e0d4e18..5a71c33 100644 --- a/t/release-kwalitee.t +++ b/t/release-kwalitee.t @@ -6,7 +6,13 @@ BEGIN { } } -# this test was generated with Dist::Zilla::Plugin::Test::Kwalitee 2.07 +# this test was generated with Dist::Zilla::Plugin::Test::Kwalitee 2.11 use strict; use warnings; -use Test::Kwalitee; +use Test::More 0.88; +eval { require Test::Kwalitee; Test::Kwalitee->VERSION(1.21); Test::Kwalitee->import(qw(kwalitee_ok)); }; +plan(skip_all => "Test::Kwalitee not installed: $@; skipping") if $@; + +kwalitee_ok(); + +done_testing; diff --git a/t/release-pod-syntax.t b/t/release-pod-syntax.t index d46a955..fee3d94 100644 --- a/t/release-pod-syntax.t +++ b/t/release-pod-syntax.t @@ -7,9 +7,9 @@ BEGIN { } } +# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests. use Test::More; - -eval "use Test::Pod 1.41"; -plan skip_all => "Test::Pod 1.41 required for testing POD" if $@; +eval { require Test::Pod; Test::Pod->VERSION(1.41); Test::Pod->import(); }; +plan(skip_all => "Test::Pod not installed: $@; skipping") if $@; all_pod_files_ok(); diff --git a/t/release-unused-vars.t b/t/release-unused-vars.t index 8237f96..a884bed 100644 --- a/t/release-unused-vars.t +++ b/t/release-unused-vars.t @@ -8,9 +8,15 @@ BEGIN { } -use Test::More; +use Test::More 0.96 tests => 1; +eval { require Test::Vars }; -eval "use Test::Vars"; -plan skip_all => "Test::Vars required for testing unused vars" - if $@; +SKIP: { + skip 1 => 'Test::Vars required for testing for unused vars' + if $@; + Test::Vars->import; + + subtest 'unused vars' => sub { all_vars_ok(); + }; +};