From: Karen Etheridge Date: Tue, 17 Sep 2013 00:16:16 +0000 (-0700) Subject: do not let warnings kill an install X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fc553705e0102a934825453c17767a7adf937f4a;p=gitmo%2FMooseX-AlwaysCoerce.git do not let warnings kill an install --- diff --git a/Changes b/Changes index 70873f3..8724b81 100644 --- a/Changes +++ b/Changes @@ -3,6 +3,7 @@ Revision history for {{$dist->name}} {{$NEXT}} - fixed reference to writable git repository - pod coverage tests added + - warnings tests bypassed during installation 0.18 2012-10-13 16:57:07 PDT-0700 (Karen Etheridge) - added missing prerequisite declaration diff --git a/t/01-basic.t b/t/01-basic.t index fac9e5e..dab6a3f 100644 --- a/t/01-basic.t +++ b/t/01-basic.t @@ -1,9 +1,9 @@ use strict; use warnings; -use Test::More tests => 16; +use Test::More; use Test::Fatal; -use Test::NoWarnings 1.04 ':early'; +use if $ENV{AUTHOR_TESTING}, 'Test::Warnings'; { package MyClass; @@ -100,3 +100,5 @@ is( undef, 'set untyped class attribute', ); + +done_testing; diff --git a/t/02-mx-m-s.t b/t/02-mx-m-s.t index 6b509c0..0f1d071 100644 --- a/t/02-mx-m-s.t +++ b/t/02-mx-m-s.t @@ -25,8 +25,7 @@ use Test::More; } use Test::Fatal; -use Test::NoWarnings 1.04 ':early'; -plan tests => 4; +use if $ENV{AUTHOR_TESTING}, 'Test::Warnings'; ok( (my $instance = MyClass->new), 'instance' ); @@ -38,3 +37,5 @@ TODO: { }, undef, 'method called with coerced and uncoerced parameters' ) or todo_skip 'is() test never ran', 1; } + +done_testing; diff --git a/t/03-roles.t b/t/03-roles.t index 5647c86..39f5b87 100644 --- a/t/03-roles.t +++ b/t/03-roles.t @@ -1,9 +1,9 @@ use strict; use warnings; -use Test::More tests => 16; +use Test::More; use Test::Fatal; -use Test::NoWarnings 1.04 ':early'; +use if $ENV{AUTHOR_TESTING}, 'Test::Warnings'; { package MyRole; @@ -78,3 +78,5 @@ is( exception { $instance->untyped_class_attr(10); is $instance->untyped_class_attr, 10; }, undef, 'set untyped class attribute' ); + +done_testing; diff --git a/t/04-parameterized-roles.t b/t/04-parameterized-roles.t index 340c16f..12f053a 100644 --- a/t/04-parameterized-roles.t +++ b/t/04-parameterized-roles.t @@ -8,7 +8,7 @@ use Test::Requires { }; plan tests => 12; -use Test::NoWarnings 1.04 ':early'; +use if $ENV{AUTHOR_TESTING}, 'Test::Warnings'; eval <<'EOF'; package Role;