Skip to content

Commit

Permalink
files in xt/ should be ignored when we check prereq matches use
Browse files Browse the repository at this point in the history
  • Loading branch information
charsbar committed Apr 13, 2013
1 parent 4593819 commit 83e91b5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/Module/CPANTS/Kwalitee/Uses.pm
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ sub analyse {
my $distdir=$me->distdir;
my $modules=$me->d->{modules};
my $files=$me->d->{files_array};
my @tests=grep {m|^x?t\b.*\.t|} @$files;

# NOTE: all files in xt/ should be ignored because they are
# for authors only and their dependencies may not be (and
# often are not) listed in meta files.
my @tests=grep {m|^t\b.*\.t|} @$files;
$me->d->{test_files} = \@tests;

my %skip=map {$_->{module}=>1 } @$modules;
Expand Down

0 comments on commit 83e91b5

Please sign in to comment.