Subject: | Undeclared dependency Test::RequiresInternet |
Test suite fails if Test::RequiresInternet. See also:
<http://analysis.cpantesters.org/solved?distv=HTTP-Cache-Transparent-1.4#qr%3A%28Can%27t%20locate%20%5CS%2Bpm%29>
Probably the dependency should be declared (using test_requires?), or the test should do a check first if Test::RequiresInternet is available, e.g. like this (untested):
use Test::More;
BEGIN {
if (!eval { require Test::RequiresInternet; 1 }) {
plan skip_all => 'Test::RequiresInternet is not installed';
}
}
use Test::RequiresInternet ...