Bug 42714: RM follow-up: Fix tests
prove t/00-load.t prove xt/author/pod_coverage.t Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
parent
55bc6f01e0
commit
662020e21b
|
|
@ -62,6 +62,7 @@ find(
|
|||
return unless $m =~ s/[.]pm$//;
|
||||
$m =~ s{^.*/Koha/}{Koha/};
|
||||
$m =~ s{/}{::}g;
|
||||
return if $m eq 'Koha::Script'; # has an INIT block, which can't run when required at runtime here
|
||||
if ( is_testable($m) ) {
|
||||
use_ok($m) || BAIL_OUT("***** PROBLEMS LOADING FILE '$m'");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@ use Koha::Devel::Files;
|
|||
my $dev_files = Koha::Devel::Files->new( { context => 'tidy' } );
|
||||
my @files = $dev_files->ls_perl_files;
|
||||
|
||||
@files = grep { $_ ne 'Koha/Script.pm' } @files; # has an INIT block, which can't run when required at runtime here
|
||||
|
||||
plan tests => scalar(@files) + 1;
|
||||
|
||||
for my $file (@files) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue