use strict;
use warnings FATAL => 'all';
-use Test::More tests => 2;
-use Test::NoWarnings 1.04 ':early';
+use Test::More;
+use if $ENV{AUTHOR_TESTING}, 'Test::Warnings';
use Test::Without::Module 'MooseX::Getopt';
'the Getopt attr trait is not added if not installed',
);
+done_testing;