@@ -, +, @@ module(s) not installed as koha-shell --- t/db_dependent/Koha_Elasticsearch_Indexer.t | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) --- a/t/db_dependent/Koha_Elasticsearch_Indexer.t +++ a/t/db_dependent/Koha_Elasticsearch_Indexer.t @@ -17,7 +17,7 @@ use Modern::Perl; -use Test::More tests => 6; +use Test::More; use Test::MockModule; use t::lib::Mocks; @@ -27,6 +27,15 @@ use Koha::Database; my $schema = Koha::Database->schema(); +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 => 6; +} + use_ok('Koha::SearchEngine::Elasticsearch::Indexer'); my $indexer; --