X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FDevel-REPL.git;a=blobdiff_plain;f=t%2Fload_plugins.t;h=40b11c7069fe3f526eeec3a0b1ec1ad89ace4fcf;hp=891a72c76e0da72eede1bde26d273fdc2fb90411;hb=6762d292565aa94ee95c51166945155f71f461d7;hpb=59500b7eafe06b09cccd3b4d4b80b0728698d034 diff --git a/t/load_plugins.t b/t/load_plugins.t index 891a72c..40b11c7 100755 --- a/t/load_plugins.t +++ b/t/load_plugins.t @@ -3,7 +3,7 @@ use strict; use warnings; use Test::More; -use Test::Warnings; +use if $ENV{AUTHOR_TESTING}, 'Test::Warnings'; use_ok('Devel::REPL'); @@ -59,7 +59,8 @@ sub test_load_plugin { 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 $@; } }