http://qs321.pair.com?node_id=289404

sutch has asked for the wisdom of the Perl Monks concerning the following question:

I've created a module that contains some tests that rely on Struct::Compare. This module is not a module that is included with the default Perl installation, so the module that I've created must either require Struct::Compare or skip the tests that rely on it.

I'm looking for suggestions on how to handle this. Is it better to require modules that are only needed for testing, or to skip the tests with a message to the user?

How can tests be skipped (preferably, using Test::More) when a module is not available?