From 2736fb5501e2e8c22aca0b03effc7b6a407a05d4 Mon Sep 17 00:00:00 2001 From: Christian Walde Date: Sat, 23 Sep 2023 15:26:59 +0200 Subject: [PATCH] have the dependents test test all dependents --- xt/dependent-modules.t | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/xt/dependent-modules.t b/xt/dependent-modules.t index 581f7aa8..36e61101 100644 --- a/xt/dependent-modules.t +++ b/xt/dependent-modules.t @@ -1,16 +1,9 @@ -use strict; -use warnings; +use Test2::V0; +use strictures 2; -use Test::DependentModules qw( test_modules ); -use Test::More; +use Test::DependentModules 'test_all_dependents'; -my @modules = ('Perl::Critic'); +skip_all "ENV var TEST_DEPENDENTS not set" if not $ENV{TEST_DEPENDENTS}; -SKIP: { - skip '$ENV{TEST_DEPENDENTS} not set', scalar @modules - unless $ENV{TEST_DEPENDENTS}; - test_modules(@modules); - -} - -done_testing(); +# if timestamps are required, github's workflow view has an option +test_all_dependents PPI => { exclude => qr/^(Apache2-SSI|Devel-ebug-HTTP)$/ };