Koha/t/00-testcritic.t
Jonathan Druart 0adc264edb
Bug 32349: Remove TEST_QA
There is an env var that we are passing from koha-testing-docker, TEST_QA.
It's used in Koha from a single test file, t/00-testcritic.t.
If not set, no test is run.

Do we really need this? libtest-perl-critic-perl is packaged and automatically installed.

Signed-off-by: Mason James <mtj@kohaaloha.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-01-11 20:44:21 -03:00

17 lines
390 B
Perl
Executable file

#!/usr/bin/env perl
# This script can be used to run perlcritic on perl files in koha
use Modern::Perl;
use Test::More;
use English qw(-no_match_vars);
eval { require Test::Perl::Critic; };
if ( $EVAL_ERROR ) {
my $msg = 'Test::Perl::Critic required to criticise code,';
plan( skip_all => $msg );
}
Test::Perl::Critic->import( -profile => '.perlcriticrc');
all_critic_ok('.');