From 0998f56b007ce19fbea33b05cddcc1dcdbb86a7a Mon Sep 17 00:00:00 2001 From: Guillaume Aubert Date: Wed, 8 May 2013 22:26:52 -0400 Subject: [PATCH] Added Test::FailWarnings to all tests. --- Build.PL | 1 + META.json | 3 ++- META.yml | 1 + Makefile.PL | 1 + t/00-load.t | 2 ++ t/10-_get_modules_from_manifest-simple.t | 3 ++- t/11-_get_modules_from_manifest-exclusions.t | 3 ++- t/20-ok_versions-sync.t | 5 +++-- t/21-ok_versions-desync.t | 5 +++-- t/22-ok_versions-modules_list.t | 5 +++-- t/23-ok_versions-empty_list.t | 5 +++-- t/24-ok_versions-missing_manifest.t | 5 +++-- t/25-ok_versions-missing_version.t | 5 +++-- 13 files changed, 29 insertions(+), 15 deletions(-) diff --git a/Build.PL b/Build.PL index 90498ab..3e9c1fd 100644 --- a/Build.PL +++ b/Build.PL @@ -43,6 +43,7 @@ my $builder = $class->new( { 'Carp' => 0, 'Test::Builder::Tester' => 0, + 'Test::FailWarnings' => 0, }, requires => { diff --git a/META.json b/META.json index ce5a499..10456b6 100644 --- a/META.json +++ b/META.json @@ -23,7 +23,8 @@ "build" : { "requires" : { "Carp" : "0", - "Test::Builder::Tester" : "0" + "Test::Builder::Tester" : "0", + "Test::FailWarnings" : "0" } }, "configure" : { diff --git a/META.yml b/META.yml index 7743469..ea3f624 100644 --- a/META.yml +++ b/META.yml @@ -5,6 +5,7 @@ author: build_requires: Carp: 0 Test::Builder::Tester: 0 + Test::FailWarnings: 0 configure_requires: Module::Build: 0 dynamic_config: 1 diff --git a/Makefile.PL b/Makefile.PL index 045cacf..464d09f 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -9,6 +9,7 @@ WriteMakefile 'Carp' => 0, 'Data::Dumper' => 0, 'Test::Builder::Tester' => 0, + 'Test::FailWarnings' => 0, 'Test::More' => '0.94' }, 'INSTALLDIRS' => 'site', diff --git a/t/00-load.t b/t/00-load.t index 306a3f3..1a04716 100644 --- a/t/00-load.t +++ b/t/00-load.t @@ -3,8 +3,10 @@ use strict; use warnings; +use Test::FailWarnings -allow_deps => 1; use Test::More tests => 1; + BEGIN { use_ok( 'Test::Dist::VersionSync' ) || print "Bail out!\n"; diff --git a/t/10-_get_modules_from_manifest-simple.t b/t/10-_get_modules_from_manifest-simple.t index 60bcfe2..b04089a 100644 --- a/t/10-_get_modules_from_manifest-simple.t +++ b/t/10-_get_modules_from_manifest-simple.t @@ -3,8 +3,9 @@ use strict; use warnings; -use Test::More tests => 10; use Test::Dist::VersionSync; +use Test::FailWarnings -allow_deps => 1; +use Test::More tests => 10; use_ok( 'Cwd' ); diff --git a/t/11-_get_modules_from_manifest-exclusions.t b/t/11-_get_modules_from_manifest-exclusions.t index 96873a1..d6995d9 100644 --- a/t/11-_get_modules_from_manifest-exclusions.t +++ b/t/11-_get_modules_from_manifest-exclusions.t @@ -3,8 +3,9 @@ use strict; use warnings; -use Test::More tests => 10; use Test::Dist::VersionSync; +use Test::FailWarnings -allow_deps => 1; +use Test::More tests => 10; use_ok( 'Cwd' ); diff --git a/t/20-ok_versions-sync.t b/t/20-ok_versions-sync.t index b623d83..6638410 100644 --- a/t/20-ok_versions-sync.t +++ b/t/20-ok_versions-sync.t @@ -3,9 +3,10 @@ use strict; use warnings; -use Test::More tests => 5; -use Test::Dist::VersionSync; use Test::Builder::Tester; +use Test::Dist::VersionSync; +use Test::FailWarnings -allow_deps => 1; +use Test::More tests => 5; use_ok( 'Cwd' ); diff --git a/t/21-ok_versions-desync.t b/t/21-ok_versions-desync.t index 720e5fb..183e544 100644 --- a/t/21-ok_versions-desync.t +++ b/t/21-ok_versions-desync.t @@ -3,9 +3,10 @@ use strict; use warnings; -use Test::More tests => 5; -use Test::Dist::VersionSync; use Test::Builder::Tester; +use Test::Dist::VersionSync; +use Test::FailWarnings -allow_deps => 1; +use Test::More tests => 5; use_ok( 'Cwd' ); diff --git a/t/22-ok_versions-modules_list.t b/t/22-ok_versions-modules_list.t index e4ab489..e71214a 100644 --- a/t/22-ok_versions-modules_list.t +++ b/t/22-ok_versions-modules_list.t @@ -3,9 +3,10 @@ use strict; use warnings; -use Test::More tests => 5; -use Test::Dist::VersionSync; use Test::Builder::Tester; +use Test::Dist::VersionSync; +use Test::FailWarnings -allow_deps => 1; +use Test::More tests => 5; use_ok( 'Cwd' ); diff --git a/t/23-ok_versions-empty_list.t b/t/23-ok_versions-empty_list.t index 5b30eaf..6fe9e64 100644 --- a/t/23-ok_versions-empty_list.t +++ b/t/23-ok_versions-empty_list.t @@ -3,9 +3,10 @@ use strict; use warnings; -use Test::More tests => 1; -use Test::Dist::VersionSync; use Test::Builder::Tester; +use Test::Dist::VersionSync; +use Test::FailWarnings -allow_deps => 1; +use Test::More tests => 1; test_out( '1..3') diff --git a/t/24-ok_versions-missing_manifest.t b/t/24-ok_versions-missing_manifest.t index 93cc223..b21bd31 100644 --- a/t/24-ok_versions-missing_manifest.t +++ b/t/24-ok_versions-missing_manifest.t @@ -3,9 +3,10 @@ use strict; use warnings; -use Test::More tests => 5; -use Test::Dist::VersionSync; use Test::Builder::Tester; +use Test::Dist::VersionSync; +use Test::FailWarnings -allow_deps => 1; +use Test::More tests => 5; use_ok( 'Cwd' ); diff --git a/t/25-ok_versions-missing_version.t b/t/25-ok_versions-missing_version.t index 993062b..96a8907 100644 --- a/t/25-ok_versions-missing_version.t +++ b/t/25-ok_versions-missing_version.t @@ -3,9 +3,10 @@ use strict; use warnings; -use Test::More tests => 5; -use Test::Dist::VersionSync; use Test::Builder::Tester; +use Test::Dist::VersionSync; +use Test::FailWarnings -allow_deps => 1; +use Test::More tests => 5; use_ok( 'Cwd' );