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

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-Tests itself? Or about migrating random extensions away from it?

Is this task about MediaWikiIntegrationTestCase in MediaWiki-Core-Tests 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

Change 521583 had a related patch set uploaded (by Ladsgroup; owner: Ladsgroup):
[mediawiki/extensions/WikibaseQualityConstraints@master] Migrate unit tests to the new structure

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

Change 521583 merged by jenkins-bot:
[mediawiki/extensions/WikibaseQualityConstraints@master] Migrate some unit tests to the new structure

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