1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
use strict;
use warnings;
# Test::Needs will fail the dzil build if RELEASE_TESTING is enabled and this
# module is not installed, but we don't want to slow down every dzil build to
# test dependents.
use Test::More;
local $ENV{RELEASE_TESTING} = 0;
require Test::Needs;
Test::Needs->import({'Test::DependentModules' => 0.27});
my @modules = ('WWW::Mechanize');
SKIP: {
skip '$ENV{TEST_DEPENDENTS} not set', scalar @modules
unless $ENV{TEST_DEPENDENTS};
Test::DependentModules::test_modules(@modules);
}
done_testing();
|