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') ...@@ -11,12 +11,16 @@ plan(skip_all => 'Test::Compile required')
unless Test::Compile->require(); unless Test::Compile->require();
my $test = Test::Compile->new(); 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( ok(
$test->pl_file_compiles($_), $test->pl_file_compiles($_),
$_ $_
) foreach qw(bin/app bin/update-metadata bin/access-check-manager.pl); ) foreach @pl_files;
ok( ok(
$test->pm_file_compiles($_), $test->pm_file_compiles($_),
$_ $_
) foreach $test->all_pm_files('lib'); ) foreach @pm_files;
$test->done_testing();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment