use strict;
use warnings;
-use Test::More;
-use Test::Warnings;
+use Test::More 0.88;
+use if $ENV{AUTHOR_TESTING}, 'Test::Warnings';
use_ok('Devel::REPL');
eval "use Devel::REPL::Plugin::$plugin_name; 1"
or skip "could not eval plugin $plugin_name", 1;
- ok(eval { $repl->load_plugin($plugin_name); 1 }, $test_name);
+ ok(eval { $repl->load_plugin($plugin_name); 1 }, $test_name)
+ or diag $@;
}
}