From 850240c1e9e1bcc47d4932c65bb0a58acd49056c Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 8 Jan 2014 14:15:28 -0300 Subject: [PATCH] Bug 11096 - Wrap each test set configuration into a subtest This makes it easier to read. Also fixes the test count, and is rebased against 11499 which is needed to correctly test the patches for this bug (i.e. indexing mode needs to be correctly set in koha-conf.xml) Regards To+ Sponsored-by: Universidad Nacional de Cordoba Signed-off-by: Chris Cormack Signed-off-by: Kyle M Hall --- t/db_dependent/Search.t | 26 ++++++++++++++++++++------ 1 files changed, 20 insertions(+), 6 deletions(-) diff --git a/t/db_dependent/Search.t b/t/db_dependent/Search.t index 3654eb5..cdc87dc 100644 --- a/t/db_dependent/Search.t +++ b/t/db_dependent/Search.t @@ -12,7 +12,7 @@ use YAML; use C4::Debug; require C4::Context; -use Test::More tests => 212; +use Test::More tests => 4; use Test::MockModule; use MARC::Record; use File::Spec; @@ -836,10 +836,24 @@ sub run_unimarc_search_tests { cleanup(); } -run_marc21_search_tests('grs1'); -run_marc21_search_tests('dom'); - -run_unimarc_search_tests('grs1'); -run_unimarc_search_tests('dom'); +subtest 'MARC21 + GRS-1' => sub { + plan tests => 97; + run_marc21_search_tests('grs1'); +}; + +subtest 'MARC21 + DOM' => sub { + plan tests => 97; + run_marc21_search_tests('dom'); +}; + +subtest 'UNIMARC + GRS-1' => sub { + plan tests => 13; + run_unimarc_search_tests('grs1'); +}; + +subtest 'UNIMARC + DOM' => sub { + plan tests => 13; + run_unimarc_search_tests('dom'); +}; 1; -- 1.7.2.5