[Koha-bugs] [Bug 27190] New: Debug REST API tests
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Dec 10 16:55:10 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27190
Bug ID: 27190
Summary: Debug REST API tests
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Test Suite
Assignee: chris at bigballofwax.co.nz
Reporter: jonathan.druart at bugs.koha-community.org
QA Contact: testopia at bugs.koha-community.org
It can be tricky to debug REST API tests. You can get a "received 500 when 200
expected", but you don't have the error.
There is one manual way to do it:
$t->put_ok($url)->status_is(200)->json_is($expected_json)->or( sub { warn
$t->tx->res->to_string });
But could we provide a generic way to add a diag in case Test::Mojo fails?
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list