Le 17/12/2014 23:57, Antoine Musso a écrit :
Hello,
I found out we do not run on extensions the 'structure' testsuite of mediawiki/core. It is made of three tests in tests/phpunit/structure
AutoLoaderTest.php verify classes are properly registered, and the autloader entries point to an actual file
ResourcesTest.php ditto for the Resource Loader StructureTest.php makes sure test files ends with Test.php
Jenkins runs on extensions the 'extension' testsuite, I will add the 'structure' directory to it tomorrow morning ~9am UTC.
You can verify whether your extension pass by running:
php tests/phpunit/phpunit.php --testsuite structure
The patch for core is: https://gerrit.wikimedia.org/r/#/c/180496/
Ideally we should backport it to REL branches as well.
Filled as https://phabricator.wikimedia.org/T78798
I have merged the change a couple hours ago. Some extensions unsurprisingly started failing, luckily the fix are quite easy.
MobileFrontend resourceloader: https://gerrit.wikimedia.org/r/180748
AbuseFilter and Flow autoloaders being incomplete: https://gerrit.wikimedia.org/r/180751 https://gerrit.wikimedia.org/r/180191