Skip to content

Commit 5d07e62

Browse files
committed
have the dependents test test all dependents
1 parent 1c3c2e3 commit 5d07e62

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

.github/workflows/test-dependents.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ jobs:
2424
- name: Test Dependents
2525
env:
2626
TEST_DEPENDENTS: 1
27+
PERL_TEST_DM_CPAN_VERBOSE: 1
2728
run: prove -l xt/dependent-modules.t

xt/dependent-modules.t

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
1-
use strict;
2-
use warnings;
1+
use Test2::V0;
2+
use strictures 2;
33

4-
use Test::DependentModules qw( test_modules );
5-
use Test::More;
4+
use Test::DependentModules 'test_all_dependents';
65

7-
my @modules = ('Perl::Critic');
6+
skip_all "ENV var TEST_DEPENDENTS not set" if not $ENV{TEST_DEPENDENTS};
87

9-
SKIP: {
10-
skip '$ENV{TEST_DEPENDENTS} not set', scalar @modules
11-
unless $ENV{TEST_DEPENDENTS};
12-
test_modules(@modules);
13-
14-
}
15-
16-
done_testing();
8+
test_all_dependents PPI => { exclude => qr/^(Apache2-SSI|Devel-ebug-HTTP)$/ };

0 commit comments

Comments
 (0)