Debian Codegraph @

xt/author/test-all-my-deps.t

raw
1 use strict;
2 use warnings;
3
4 use Cwd qw( abs_path );
5 use Test::More;
6
7 BEGIN {
8 plan skip_all =>
9 'Must set DATETIME_FORMAT_ISO8601_TEST_DEPS to true in order to run these tests'
10 unless $ENV{DATETIME_FORMAT_ISO8601_TEST_DEPS};
11 }
12
13 use Test::DependentModules qw( test_all_dependents );
14
15 local $ENV{PERL_TEST_DM_LOG_DIR} = abs_path('.');
16
17 my %exclude = map { $_ => 1 } (
18
19 # Tests hit live MetaCPAN and are very slow
20 'App-RetroPAN',
21
22 # undeclared dep on DBD-mysql
23 'CPAN-Testers-Schema',
24
25 # Fails tests out of the box
26 'Marketplace-Rakuten',
27
28 # Generated Makefile doesn't work
29 'SReview',
30 );
31
32 test_all_dependents(
33 'DateTime-Format-ISO8601',
34 {
35 filter => sub { !$exclude{ $_[0] } }
36 },
37 );