Page MenuHomePhabricator

Make QUnit tests run without installing MediaWiki
Open, MediumPublic


This is slightly less complicated than T89432. Although it, too, requires a fair amount of refactoring to make our code more testable.

The goal is to be able to run QUnit when merely loading:

  • base modules (jQuery + mediawiki.js)
  • modules marked as dependencies by test suites.
  • registered test suites.

See also:
T89432: Make PHPUnit tests run without installing MediaWiki

Event Timeline

Krinkle claimed this task.
Krinkle raised the priority of this task from to Medium.
Krinkle updated the task description. (Show Details)
Krinkle added subscribers: Krinkle, Aklapper.
Krinkle set Security to None.
Krinkle renamed this task from Make QUnit tests runnable without a MediaWiki install (tracking) to Make QUnit tests run without installing MediaWiki.Mar 21 2015, 12:55 AM

Interested in doing this at some point, but also happy to guide someone else.

I noticed the mobile team is using node-qunit which I guess is invoked by the npm testJenkins job. An example is PagePreviews T160406 and the migration of Popups (Gerrit patches).

I haven't looked at Popups or PagePreviews code. My guess is they no more rely on Special:JavaScriptTest and hence no more need a mediawiki install.