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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 5 Jun 2018 10:24:41 +0000 (11:24 +0100)
commitb9dffc169ddb7a3a32a071c4a004420814fa3a3f
tree982521895a05359914bb782e0cb202534c32a680
parent82908dc5bfa387742e2130330fdf1664b9d69c88
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>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Object.pm
Koha/Objects.pm
t/db_dependent/Koha/Objects.t