aboutsummaryrefslogtreecommitdiffstats
path: root/languages
diff options
context:
space:
mode:
authorKunal Mehta <legoktm@member.fsf.org>2016-08-04 09:44:55 -0700
committerKunal Mehta <legoktm@member.fsf.org>2016-08-04 09:49:43 -0700
commit1d7221d066c01c3fa6fb3e539cebd9fe7a91550f (patch)
tree70d6730fec17351e68e9736d538479cc126e7e90 /languages
parent356b3420d6908f91510aa0cd94f3a363be7f8999 (diff)
downloadmediawikicore-1d7221d066c01c3fa6fb3e539cebd9fe7a91550f.tar.gz
mediawikicore-1d7221d066c01c3fa6fb3e539cebd9fe7a91550f.zip
Autodiscover extension unittests
Instead of requiring every extension that wants to add unit tests to copy the exact same boilerplate over and over, let's just automatically discover them. We now have an extension registry, so we know exactly which extensions are loaded (this won't work for extensions not being loaded through extension.json). For each extension, we check to see if the directory "tests/phpunit/" exists, and if it does, add those unit tests. If there is a `UnitTestsList` subscriber already set, PHPUnit will automatically de-duplicate test cases so we won't be running anything twice. Change-Id: I6ec654ef2d8ee3630b121b1277b4ee21ba0b6cd4
Diffstat (limited to 'languages')
0 files changed, 0 insertions, 0 deletions