Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Give skip reason when running 0 tests
  • Loading branch information
coke committed Mar 26, 2019
1 parent 3fcdd25 commit c1288c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion t/02-tests-valid.t
Expand Up @@ -16,7 +16,11 @@ Ensure any test file, including author tests, have clean syntax and POD
my $max-jobs = %*ENV<TEST_THREADS> // 2;

my @files-t = Test-Files.files.grep({$_.ends-with: '.t'});
plan +@files-t;
if @files-t {
plan +@files-t;
} else {
plan :skip-all<No test files specified>
}

my %data;
test-files( @files-t );
Expand Down

0 comments on commit c1288c8

Please sign in to comment.