phpunit: Exclude /languages/messages from coverage report
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 28 Jul 2017 04:03:18 +0000 (21:03 -0700)
committerTimo Tijhof <krinklemail@gmail.com>
Fri, 28 Jul 2017 04:03:18 +0000 (21:03 -0700)
Indexing these files takes about 5-10% of the run time when generating
code coverage reports for core. It has no coverage at the moment and
probably won't any time soon given it's just variable declarations.

At least for now, exclude it to significantly speed up generating of
coverage reports.

Change-Id: I0357e004e96d4f4b19036474c8353ddb778e31f3

tests/phpunit/suite.xml

index 251a4a2..e8256ef 100644 (file)
@@ -68,6 +68,9 @@
                        <directory suffix=".php">../../includes</directory>
                        <directory suffix=".php">../../languages</directory>
                        <directory suffix=".php">../../maintenance</directory>
+                       <exclude>
+                               <directory suffix=".php">../../languages/messages</directory>
+                       </exclude>
                </whitelist>
        </filter>
 </phpunit>