Bug 20767: Display a stack trace when a method is not covered by tests
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 14 May 2018 17:04:01 +0000 (14:04 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Tue, 29 May 2018 13:54:30 +0000 (13:54 +0000)
commit5486670aca2773b8205622e48058f34ec4827b74
tree5f2e04d2e3ab3d42fa3078d59ebea7c2364a0db6
parentdb5628e7710325766e25648615c772d200348116
Bug 20767: Display a stack trace when a method is not covered by tests

When a method is not allowed yet (not covered by tests), developers get
an error the is not really useful: "The method XXX is not covered by
tests!"
It would be more useful to have a stack trace in order to know where
this error come from.

Test plan:
Modify some code to display this stack trace and confirm it makes sense
to have it, i.e. it will make debug easier

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Object.pm
Koha/Objects.pm
t/db_dependent/Koha/Objects.t