Last modified: 2014-09-25 11:48:00 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T70917, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68917 - Refactor API tests to avoid database access
Refactor API tests to avoid database access
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=backend p=0
:
Depends on: 69001
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-31 12:18 UTC by Daniel Kinzler
Modified: 2014-09-25 11:48 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Daniel Kinzler 2014-07-31 12:18:34 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links