Last modified: 2014-11-01 22:01:35 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 T57516, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55516 - Unit tests for API modules should bypass API framework.
Unit tests for API modules should bypass API framework.
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=QA p=0
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-09 14:11 UTC by Daniel Kinzler
Modified: 2014-11-01 22:01 UTC (History)
5 users (show)

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


Attachments

Description Daniel Kinzler 2013-10-09 14:11:19 UTC
Currently, unit tests for API modules emulate HTTP calls and rely on global state, both in PHP and in the database, to provide fixtures.

To simplify and speed up testing, we need a facility to instantiate API modules and inject (mock) services into them. Such a facility should be shared by all API tests.
Comment 1 Marius Hoch 2014-11-01 22:01:35 UTC
Less important after recent changes to core that made API tests way faster.

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


Navigation
Links