Page MenuHomePhabricator

Refactor Wikibase API tests to avoid database access
Closed, DuplicatePublic

Description

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.


Whiteboard: u=dev c=backend p=0

Details

Reference
bz68917

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:39 AM
bzimport set Reference to bz68917.
bzimport added a subscriber: Unknown Object (MLST).
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
Krinkle renamed this task from Refactor API tests to avoid database access to Refactor Wikibase API tests to avoid database access.Mar 27 2015, 12:33 PM
Krinkle updated the task description. (Show Details)
Krinkle set Security to None.