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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 6 Jun 2018 12:01:13 +0000 (14:01 +0200)
commite1e52c54936f4354584e465dcbd3acbe27effeb7
tree66d31f2211ffd9bd5de09e87756508a6c04cfeea
parent4cc1972a2c992299609b62d8497c0b23e50aac86
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>
(cherry picked from commit b9dffc169ddb7a3a32a071c4a004420814fa3a3f)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Object.pm
Koha/Objects.pm
t/db_dependent/Koha/Objects.t