Skip to content

Commit

Permalink
have the dependents test test all dependents
Browse files Browse the repository at this point in the history
  • Loading branch information
wchristian committed Sep 23, 2023
1 parent 1c3c2e3 commit 06580c6
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions xt/dependent-modules.t
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
use strict;
use warnings;
use Test2::V0;
use strictures 2;

use Test::DependentModules qw( test_modules );
use Test::More;
use Test::DependentModules 'test_module';

my @modules = ('Perl::Critic');

SKIP: {
skip '$ENV{TEST_DEPENDENTS} not set', scalar @modules
unless $ENV{TEST_DEPENDENTS};
test_modules(@modules);
skip_all "ENV var TEST_DEPENDENTS not set" if not $ENV{TEST_DEPENDENTS};

Test::DependentModules::_load_cpan;
Test::DependentModules::_make_logs;
skip_all "Could not find any distros that depend on PPI" unless #
my @deps =
Test::DependentModules::_get_deps "PPI" => { exclude => qr/^Apache2-SSI$/ };
plan tests => scalar @deps;
for (@deps) {
diag "" . localtime time;
test_module $_;
}

done_testing();

0 comments on commit 06580c6

Please sign in to comment.