Last modified: 2014-07-28 18:40:06 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 T70754, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68754 - Add a hook for extensions to prepare unit test environment
Add a hook for extensions to prepare unit test environment
Status: NEW
Product: MediaWiki
Classification: Unclassified
Unit tests (Other open bugs)
1.24rc
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-28 17:31 UTC by Niklas Laxström
Modified: 2014-07-28 18:40 UTC (History)
4 users (show)

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


Attachments

Description Niklas Laxström 2014-07-28 17:31:58 UTC
The use case is following:

Extensions like Translate (probably also CirrusSearch) register external services like ElasticSearch. During unit tests code can create and change pages. Hooks are executed which call these services with test data but using the production service.

If there were a hook for preparing the environment, we could setup a test service or disable the service, depending what makes sense.
Comment 1 Nemo 2014-07-28 17:56:50 UTC
To (I hope) further the case, when on labs-vagrant I run phpunit most of the CPU cycle go (all the time) to processes like
    php maintenance/runJobs.php --wiki=wiki-unittest_ --type=cirrusSearchLinksUpdateSecondary --maxtime=60 --memory-limit=300M
and similar ones for Parsoid or Solr when enabled.

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


Navigation
Links