File: dependent-modules.t

package info (click to toggle)
libcode-tidyall-perl 0.84~ds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,064 kB
  • sloc: perl: 5,244; lisp: 47; makefile: 2; sh: 1
file content (24 lines) | stat: -rw-r--r-- 599 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use strict;
use warnings;

use Cwd qw( abs_path );
use Test::More;

BEGIN {
    plan skip_all => 'Must set TIDYALL_TEST_DEPS to true in order to run these tests'
        unless $ENV{TIDYALL_TEST_DEPS};
}

use Test::DependentModules qw( test_all_dependents );

local $ENV{AUTHOR_TESTING}       = 0;
local $ENV{RELEASE_TESTING}      = 0;
local $ENV{PERL_TEST_DM_LOG_DIR} = abs_path('.');

test_all_dependents(
    'Code::TidyAll', {
        # We only care about plugins, not every module that includes tidyall
        # as a developer dep.
        filter => sub { $_[0] =~ /^Code-TidyAll-/ }
    }
);