Use PHPUnit filter/whitelist to select the files that need testing.
authorJan Zerebecki <jan.wikimedia@zerebecki.de>
Fri, 18 Oct 2013 19:03:12 +0000 (21:03 +0200)
committerHashar <hashar@free.fr>
Tue, 28 Jan 2014 20:56:31 +0000 (20:56 +0000)
This has the effect of excluding the tests themselves from the code coverage
and including files that no test loads.

Change-Id: I65674ca3569d1ae6484b6769366213d71c0bdbc4

tests/phpunit/suite.xml

index 7a9122f..3e76ff8 100644 (file)
                        <group>Stub</group>
                </exclude>
        </groups>
+       <filter>
+               <whitelist addUncoveredFilesFromWhitelist="true">
+                       <directory suffix=".php">../../includes</directory>
+                       <directory suffix=".php">../../languages</directory>
+                       <directory suffix=".php">../../maintenance</directory>
+                       <directory suffix=".php">../../resources</directory>
+                       <directory suffix=".php">../../skins</directory>
+               </whitelist>
+       </filter>
 </phpunit>