Skip to content
Snippets Groups Projects
Commit fa9a9c44 authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

get a test plan first

parent b01c3036
No related branches found
No related tags found
No related merge requests found
......@@ -11,12 +11,16 @@ plan(skip_all => 'Test::Compile required')
unless Test::Compile->require();
my $test = Test::Compile->new();
my @pm_files = $test->all_pm_files('lib');
my @pl_files = qw(bin/app bin/update-metadata bin/access-check-manager.pl);
plan tests => scalar @pm_files + scalar @pl_files;
ok(
$test->pl_file_compiles($_),
$_
) foreach qw(bin/app bin/update-metadata bin/access-check-manager.pl);
) foreach @pl_files;
ok(
$test->pm_file_compiles($_),
$_
) foreach $test->all_pm_files('lib');
$test->done_testing();
) foreach @pm_files;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment