https://bugzilla.wikimedia.org/show_bug.cgi?id=68917
Bug ID: 68917
Summary: Refactor API tests to avoid database access
Product: MediaWiki extensions
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: WikidataRepo
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Web browser: ---
Mobile Platform: ---
Database access (and other global state fixtures) make API tests very slow. We
should refactor our API modules to allow all services to be
injected/overwritten (perhaps using the initServices() approach used by
CreateRedirectModule). Tests can then be rewritten to inject mock storage layer
services and work without manipulating the database.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l