I'm seeing issues when I install any extension or skin with unit tests
e.g. RelatedArticles(fixed), MobileFrontend, Minerva(fixed)
Core tests seem to be working completely fine.
TypeError: test.callback.call is not a function at runTest (http://localhost:8888/w/load.php?debug=false&lang=en&modules=jquery.qunit&only=scripts&raw=1&skin=vector&sync=1:20:162) at Test.run (http://localhost:8888/w/load.php?debug=false&lang=en&modules=jquery.qunit&only=scripts&raw=1&skin=vector&sync=1:19:914) at http://localhost:8888/w/load.php?debug=false&lang=en&modules=jquery.qunit&only=scripts&raw=1&skin=vector&sync=1:23:875 at Object.advance (http://localhost:8888/w/load.php?debug=false&lang=en&modules=jquery.qunit&only=scripts&raw=1&skin=vector&sync=1:14:956) at begin (http://localhost:8888/w/load.php?debug=false&lang=en&modules=jquery.qunit&only=scripts&raw=1&skin=vector&sync=1:44:336) at http://localhost:8888/w/load.php?debug=false&lang=en&modules=jquery.qunit&only=scripts&raw=1&skin=vector&sync=1:43:855
The reason is there is an upgrade to QUnit 2 going on.
Right now QUnit 1 is used for Jenkins, but that's going to go away soon.
See https://phabricator.wikimedia.org/T174598#3568353 for an explanation.
We should update our tests or we will suffer tremendous pain with merging very soon!
Sign off steps (developer only)
- Locally update MobileFrontend extension
- $wgEnableJavaScriptTest = true; in LocalSettings
- Verify that all the tests for MobileFrontend pass when you visit http://localhost:8888/w/index.php/Special:JavaScriptTest/qunit/plain