do not let warnings kill an install
[gitmo/MooseX-ConfigFromFile.git] / t / 04a_getopt.t
index 562c54f..0ba26ec 100644 (file)
@@ -1,8 +1,8 @@
 use strict;
 use warnings FATAL => 'all';
 
-use Test::More tests => 2;
-use Test::Warnings;
+use Test::More;
+use if $ENV{AUTHOR_TESTING}, 'Test::Warnings';
 
 use Test::Without::Module 'MooseX::Getopt';
 
@@ -19,3 +19,4 @@ ok(
     'the Getopt attr trait is not added if not installed',
 );
 
+done_testing;