]> git.koha-community.org Git - koha.git/commit
Bug 19483: Fix test plan in t/db_dependent/www/*
authorOlli-Antti Kivilahti <olli-antti.kivilahti@jns.fi>
Wed, 18 Oct 2017 11:33:22 +0000 (14:33 +0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 31 Jan 2018 07:24:56 +0000 (08:24 +0100)
commit862b732c0a5771038d4922cb666ebf7567d6f4ca
treebf28509991c1bda693656b66ea8f43081e54e5aa
parent56f1a54656a03bdcdbc8730427c91584b8ec8080
Bug 19483: Fix test plan in t/db_dependent/www/*

t/db_dependent/www/* crashes test harness due to misconfigured test plan

prove t/db_dependent/www/

without defining KOHA_INTRANET_URL
bails out and marks the whole test suite as failed.
Test suite should not be failed if this optional WWW::Mechanize test
suite is not activated.

After this patch, the tests are properly skipped without failing the
whole tests.

This is important when running all tests under t, as this needlessly
fails the test suite.

Also handling of 'skip_all' is inconsistent in t/db_dependent/www
-tests, so this normalizes it to skip_all instead of bail_out

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit f25d650a1ca4fd6bb927484586210b74e2c40eb6)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
t/db_dependent/www/auth_values_input_www.t
t/db_dependent/www/batch.t
t/db_dependent/www/history.t
t/db_dependent/www/search_utf8.t