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: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/