-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
have the dependents test test all dependents
- Loading branch information
1 parent
1c3c2e3
commit 06580c6
Showing
1 changed file
with
13 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |