@@ -, +, @@ module not installed as koha-shell. --- t/db_dependent/Koha_Elasticsearch_Indexer.t | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) --- a/t/db_dependent/Koha_Elasticsearch_Indexer.t +++ a/t/db_dependent/Koha_Elasticsearch_Indexer.t @@ -17,11 +17,20 @@ use Modern::Perl; -use Test::More tests => 5; +use Test::More; use MARC::Record; -use_ok('Koha::SearchEngine::Elasticsearch::Indexer'); +eval { require Koha::SearchEngine::Elasticsearch::Indexer; }; + +if ( $@ ) { + my $es_dep_msg = 'Required module Catmandu::Importer::MARC is not installed'; + plan( skip_all => $es_dep_msg ); +} +else { + plan tests => 5; + use_ok('Koha::SearchEngine::Elasticsearch::Indexer'); +} my $indexer; ok( --