Skip to content

Commit

Permalink
Summarise which dependencies are missing in check deps test
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Cochrane committed Sep 14, 2015
1 parent 7817733 commit 76af694
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion t/000-check-dependencies.t
Expand Up @@ -15,8 +15,13 @@ my @dependencies = qw{

plan @dependencies.elems;

my @missing-deps;
for @dependencies -> $dep {
use-ok $dep, "$dep able to be use-d ok";
my $use-able = use-ok $dep, "$dep able to be use-d ok";
@missing-deps.push($dep) if not $use-able;
}

die "Please install the required dependencies:\n", @missing-deps.join("\n")
if @missing-deps;

# vim: expandtab shiftwidth=4 ft=perl6

0 comments on commit 76af694

Please sign in to comment.