Page MenuHomePhabricator

Make QUnit tests run without installing MediaWiki
Open, MediumPublic

Description

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 created this task.Feb 13 2015, 8:08 AM
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 updated the task description. (Show Details)Feb 13 2015, 8:12 AM
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
Krinkle removed Krinkle as the assignee of this task.Jun 17 2015, 5:52 PM

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.

Krinkle moved this task from Inbox to PHPUnit on the MediaWiki-Core-Testing board.Jul 7 2017, 5:17 AM
Krinkle moved this task from PHPUnit to QUnit on the MediaWiki-Core-Testing board.
Jhernandez removed a subscriber: Jhernandez.Apr 2 2020, 6:46 PM