From: Karen Etheridge Date: Thu, 11 Jul 2013 22:18:39 +0000 (-0700) Subject: use warnings tester with fewer dependencies, issues X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMooseX-Getopt.git;a=commitdiff_plain;h=25eb430dc9dc0e223b0a8cddf555e0dc3bbd26aa use warnings tester with fewer dependencies, issues --- diff --git a/t/000_load.t b/t/000_load.t index 1f3cfb8..ed9e094 100644 --- a/t/000_load.t +++ b/t/000_load.t @@ -2,7 +2,7 @@ use strict; use warnings FATAL => 'all'; use Test::More tests => 2; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; BEGIN { use_ok('MooseX::Getopt'); diff --git a/t/001_basic.t b/t/001_basic.t index 2d5eb1b..b92f883 100644 --- a/t/001_basic.t +++ b/t/001_basic.t @@ -3,7 +3,7 @@ use warnings FATAL => 'all'; use Test::More tests => 70; use Test::Moose; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; BEGIN { use_ok('MooseX::Getopt'); diff --git a/t/002_custom_option_type.t b/t/002_custom_option_type.t index 5c0eb90..80417fe 100644 --- a/t/002_custom_option_type.t +++ b/t/002_custom_option_type.t @@ -2,7 +2,7 @@ use strict; use warnings FATAL => 'all'; use Test::More tests => 7; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; use Test::Fatal; BEGIN { diff --git a/t/003_inferred_option_type.t b/t/003_inferred_option_type.t index 8953926..c9345c0 100644 --- a/t/003_inferred_option_type.t +++ b/t/003_inferred_option_type.t @@ -2,7 +2,7 @@ use strict; use warnings FATAL => 'all'; use Test::More tests => 6; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; BEGIN { use_ok('MooseX::Getopt'); diff --git a/t/004_nogetop.t b/t/004_nogetop.t index 148682e..118f18a 100644 --- a/t/004_nogetop.t +++ b/t/004_nogetop.t @@ -3,7 +3,7 @@ use warnings FATAL => 'all'; use Test::More tests => 10; use Test::Fatal 0.003; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; BEGIN { use_ok('MooseX::Getopt'); diff --git a/t/005_strict.t b/t/005_strict.t index f768d8b..b4a5723 100644 --- a/t/005_strict.t +++ b/t/005_strict.t @@ -3,7 +3,7 @@ use warnings FATAL => 'all'; use Test::More tests => 11; use Test::Fatal; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; BEGIN { use_ok('MooseX::Getopt'); diff --git a/t/006_metaclass_traits.t b/t/006_metaclass_traits.t index 848fe53..e43b61c 100644 --- a/t/006_metaclass_traits.t +++ b/t/006_metaclass_traits.t @@ -3,7 +3,7 @@ use warnings FATAL => 'all'; use Test::More tests => 70; use Test::Moose; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; BEGIN { use_ok('MooseX::Getopt'); diff --git a/t/007_nogetopt_trait.t b/t/007_nogetopt_trait.t index 22f27cd..75a5c88 100644 --- a/t/007_nogetopt_trait.t +++ b/t/007_nogetopt_trait.t @@ -3,7 +3,7 @@ use warnings FATAL => 'all'; use Test::More tests => 10; use Test::Fatal; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; BEGIN { use_ok('MooseX::Getopt'); diff --git a/t/008_configfromfile.t b/t/008_configfromfile.t index e22f206..92e083b 100644 --- a/t/008_configfromfile.t +++ b/t/008_configfromfile.t @@ -7,7 +7,7 @@ use Test::Fatal; use Test::Deep '!blessed'; use Path::Tiny 0.009; use Scalar::Util 'blessed'; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; my %constructor_args; { diff --git a/t/009_gld_and_explicit_options.t b/t/009_gld_and_explicit_options.t index 2d46662..19320f0 100644 --- a/t/009_gld_and_explicit_options.t +++ b/t/009_gld_and_explicit_options.t @@ -3,7 +3,7 @@ use warnings FATAL => 'all'; use Test::More tests => 6; use Test::Fatal; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; use Getopt::Long::Descriptive; diff --git a/t/010_dashes.t b/t/010_dashes.t index 68f9a34..679aa82 100644 --- a/t/010_dashes.t +++ b/t/010_dashes.t @@ -3,7 +3,7 @@ use warnings FATAL => 'all'; use Test::More tests => 8; use Test::Fatal; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; BEGIN { diff --git a/t/011_process_argv.t b/t/011_process_argv.t index 99dc8e6..fdd8136 100644 --- a/t/011_process_argv.t +++ b/t/011_process_argv.t @@ -3,7 +3,7 @@ use warnings FATAL => 'all'; use Test::More tests => 7; use Test::Fatal 0.003; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; { package Testing::Foo; diff --git a/t/100_gld_default_bug.t b/t/100_gld_default_bug.t index 54312f2..0d6c410 100644 --- a/t/100_gld_default_bug.t +++ b/t/100_gld_default_bug.t @@ -2,7 +2,7 @@ use strict; use warnings FATAL => 'all'; use Test::More tests => 6; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; use Getopt::Long::Descriptive; diff --git a/t/101_argv_bug.t b/t/101_argv_bug.t index 3de40e4..02c5fc2 100644 --- a/t/101_argv_bug.t +++ b/t/101_argv_bug.t @@ -2,7 +2,7 @@ use strict; use warnings FATAL => 'all'; use Test::More tests => 4; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; use MooseX::Getopt; diff --git a/t/102_basic_basic.t b/t/102_basic_basic.t index 49042ea..10d5bd3 100644 --- a/t/102_basic_basic.t +++ b/t/102_basic_basic.t @@ -3,7 +3,7 @@ use warnings FATAL => 'all'; use Test::More tests => 70; use Test::Moose; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; BEGIN { use_ok('MooseX::Getopt::Basic'); diff --git a/t/103_uc_bug.t b/t/103_uc_bug.t index e6fa0f6..8fa6eec 100644 --- a/t/103_uc_bug.t +++ b/t/103_uc_bug.t @@ -2,7 +2,7 @@ use strict; use warnings FATAL => 'all'; use Test::More tests => 4; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; { package App; diff --git a/t/104_override_usage.t b/t/104_override_usage.t index 091b47b..29ec9d6 100644 --- a/t/104_override_usage.t +++ b/t/104_override_usage.t @@ -3,7 +3,7 @@ use warnings FATAL => 'all'; use Test::More tests => 7; use Test::Trap; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; { package MyScript; diff --git a/t/105_uc_bug_more.t b/t/105_uc_bug_more.t index 0b54994..df5c8d6 100644 --- a/t/105_uc_bug_more.t +++ b/t/105_uc_bug_more.t @@ -2,7 +2,7 @@ use strict; use warnings FATAL => 'all'; use Test::More tests => 13; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; use Moose (); use Moose::Meta::Class; diff --git a/t/106_no_ignore_case.t b/t/106_no_ignore_case.t index 1e8f425..c53a581 100644 --- a/t/106_no_ignore_case.t +++ b/t/106_no_ignore_case.t @@ -2,7 +2,7 @@ use strict; use warnings FATAL => 'all'; use Test::More tests => 22; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; use Moose (); use Moose::Meta::Class; diff --git a/t/107_no_auto_help.t b/t/107_no_auto_help.t index 3cb1aec..989e81d 100644 --- a/t/107_no_auto_help.t +++ b/t/107_no_auto_help.t @@ -16,7 +16,7 @@ use Test::More tests => 2; use Test::Warn 0.21; use Test::Fatal 0.003; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; my $fail_on_exit = 1; { diff --git a/t/107_union_bug.t b/t/107_union_bug.t index 653f012..84660c2 100644 --- a/t/107_union_bug.t +++ b/t/107_union_bug.t @@ -2,7 +2,7 @@ use strict; use warnings FATAL => 'all'; use Test::More tests => 6; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; { package example; diff --git a/t/108_usage_attr.t b/t/108_usage_attr.t index 0f24131..1cc26df 100644 --- a/t/108_usage_attr.t +++ b/t/108_usage_attr.t @@ -3,9 +3,10 @@ # This tests the fix (that fulfills the documentation claim). -use strict; use warnings FATAL => 'all'; +use strict; +use warnings FATAL => 'all'; use Test::More tests => 4; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; { package MyClass; diff --git a/t/109_help_flag.t b/t/109_help_flag.t index a9b8756..15b6ac1 100644 --- a/t/109_help_flag.t +++ b/t/109_help_flag.t @@ -16,9 +16,10 @@ # Update: since 0.41, usage info is printed to stdout, not stderr. -use strict; use warnings FATAL => 'all'; +use strict; +use warnings FATAL => 'all'; use Test::More tests => 23; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; use Test::Trap; { diff --git a/t/110_sort_usage_by_attr_order.t b/t/110_sort_usage_by_attr_order.t index c6511bf..c025680 100644 --- a/t/110_sort_usage_by_attr_order.t +++ b/t/110_sort_usage_by_attr_order.t @@ -8,9 +8,10 @@ # early), followed by options added by parent classes and roles, and then # options added by this class. -use strict; use warnings FATAL => 'all'; +use strict; +use warnings FATAL => 'all'; use Test::More tests => 2; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; { package MyClass; diff --git a/t/111_gld_pass_through.t b/t/111_gld_pass_through.t index c4f7401..2767086 100644 --- a/t/111_gld_pass_through.t +++ b/t/111_gld_pass_through.t @@ -2,7 +2,7 @@ use strict; use warnings FATAL => 'all'; use Test::More tests => 6; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; use Getopt::Long::Descriptive; diff --git a/t/112_configfile_constructor_arg.t b/t/112_configfile_constructor_arg.t index 8a30858..4b83b07 100644 --- a/t/112_configfile_constructor_arg.t +++ b/t/112_configfile_constructor_arg.t @@ -5,7 +5,7 @@ use warnings FATAL => 'all'; use Test::Requires 'MooseX::SimpleConfig'; # skip all if not installed use Test::More tests => 3; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; use Path::Tiny 0.009; # avoid warning if all we have installed is YAML or YAML::Syck - the user will