http://www.perlmonks.org?node_id=689913


in reply to Issues when testing module loading

When you test your modules, don't test if the prerequisites work - your Makefile.PL should test if they are available, and their specific test suites should check that they work the way they are expected to.

So just test use_ok 'Your::Module';.

(I know that doesn't answer the underlying question of how to test module loading; if you just want to silence these warnings, use no warnings qw(redefine prototype);)