From: Karen Etheridge Date: Sat, 9 Feb 2013 23:51:13 +0000 (-0800) Subject: make all warnings fatal in tests X-Git-Tag: v0.08~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bd567467c8bb9e746958c1ba11f93ca727a569ba;p=gitmo%2FMooseX-ConfigFromFile.git make all warnings fatal in tests --- diff --git a/t/01use.t b/t/01use.t index c2e38c0..8b1cdb1 100644 --- a/t/01use.t +++ b/t/01use.t @@ -1,5 +1,5 @@ use strict; -use warnings; +use warnings FATAL => 'all'; use Test::More tests => 2; use Test::NoWarnings 1.04 ':early'; diff --git a/t/02subclass.t b/t/02subclass.t index 477f8b2..1a67eaa 100644 --- a/t/02subclass.t +++ b/t/02subclass.t @@ -1,5 +1,5 @@ use strict; -use warnings; +use warnings FATAL => 'all'; use Test::More tests => 3; use Test::Fatal; diff --git a/t/03configfile_method.t b/t/03configfile_method.t index 0d14122..42b5e31 100644 --- a/t/03configfile_method.t +++ b/t/03configfile_method.t @@ -1,5 +1,5 @@ use strict; -use warnings; +use warnings FATAL => 'all'; use Test::More tests => 7; use Test::NoWarnings 1.04 ':early'; diff --git a/t/04a_getopt.t b/t/04a_getopt.t index 2677f50..7013e88 100644 --- a/t/04a_getopt.t +++ b/t/04a_getopt.t @@ -1,5 +1,5 @@ use strict; -use warnings; +use warnings FATAL => 'all'; use Test::More tests => 2; use Test::NoWarnings 1.04 ':early'; diff --git a/t/04b_getopt.t b/t/04b_getopt.t index 4db87d3..5e7bc2e 100644 --- a/t/04b_getopt.t +++ b/t/04b_getopt.t @@ -1,5 +1,5 @@ use strict; -use warnings; +use warnings FATAL => 'all'; use Test::Requires 'MooseX::Getopt'; # skip all if not installed use Test::More tests => 3; diff --git a/t/05_default_sub.t b/t/05_default_sub.t index 956bf6a..c91a777 100644 --- a/t/05_default_sub.t +++ b/t/05_default_sub.t @@ -1,5 +1,5 @@ use strict; -use warnings; +use warnings FATAL => 'all'; use Test::Requires 'MooseX::SimpleConfig'; # skip all if not reuqired use Test::More tests => 10; diff --git a/t/06_path_tiny.t b/t/06_path_tiny.t index 3f88c70..e44472d 100644 --- a/t/06_path_tiny.t +++ b/t/06_path_tiny.t @@ -1,5 +1,5 @@ use strict; -use warnings; +use warnings FATAL => 'all'; use Test::Requires 'MooseX::SimpleConfig'; # skip all if not reuqired use Test::More tests => 5;