https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38503
Bug ID: 38503
Summary: Add a Cypress task to generate objects based on its
swagger def spec
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]
We have TestBuilder for the Perl tests.
However for the Cypress tests we have to:
1. either mock all the routes (which is painful and time-consuming),
2. or rely on the existing data in DB (which will produce failures if data has
been inserted, and tests will have to cleanup before/after, which is painful,
time-consuming and not robust)
We should have a way to generate objects easily, in order to mock the response
of a GET route easily.
We can actually rely on the swagger spec files (the definition file) to
generate random data and mock the response of routes.
The first intended goal is to provide tests for the tables (bug 38461) and
allow future enhancements in this area (see dependent bugs of bug 36640).
--
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/