Page MenuHomePhabricator

Migrate extensions to stop using MediaWikiIntegrationTestCase on unit tests
Open, Needs TriagePublic

Description

MediaWikiIntegrationTestCase (formerlly know as MediaWikiTestCase) is a very heavy class that resets the database, caches and services between every test.

And with all of the improvements to testing system (Blog Post: Changes and improvements to PHPUnit testing in MediaWiki) we should start migrating extensions to follow the new order.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSun, Jul 28, 1:50 PM

Change 524698 had a related patch set uploaded (by Ladsgroup; owner: Amir Sarabadani):
[mediawiki/extensions/Scribunto@master] Avoid using MediaWikiIntegrationTestCase on unit tests

https://gerrit.wikimedia.org/r/524698

Is this task about MediaWikiIntegrationTestCase in MediaWiki-Core-Testing itself? Or about migrating random extensions away from it?

Is this task about MediaWikiIntegrationTestCase in MediaWiki-Core-Testing itself? Or about migrating random extensions away from it?

The core itself was handled mostly by T87781: Split mediawiki tests into unit and integration tests This task is basically extending the mentioned one to all extensions. I know it doesn't have a clear AC. Maybe we can turn this into a tracking and make a subtask for each extension?

Change 524698 merged by jenkins-bot:
[mediawiki/extensions/Scribunto@master] Avoid using MediaWikiIntegrationTestCase on unit tests

https://gerrit.wikimedia.org/r/524698