Add uncovered files to code coverage

If the files are never included through the PHP test run,
they won't count as uncovered otherwise.

See https://phpunit.de/manual/current/en/code-coverage-analysis.html#code-coverage-analysis.whitelisting-files
This commit is contained in:
Ingo Schommer 2016-09-27 08:47:01 +13:00
parent 9cb33ea5bf
commit 48e98c3d4f
1 changed files with 13 additions and 0 deletions

View File

@ -32,4 +32,17 @@
<group>sanitychecks</group>
</exclude>
</groups>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">.</directory>
<exclude>
<directory suffix=".php">thirdparty/</directory>
<directory suffix=".php">admin/thirdparty/</directory>
<directory suffix=".php">tests/</directory>
<directory suffix=".php">admin/tests/</directory>
</exclude>
</whitelist>
</filter>
</phpunit>