mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
9cb33ea5bf
commit
48e98c3d4f
@ -32,4 +32,17 @@
|
|||||||
<group>sanitychecks</group>
|
<group>sanitychecks</group>
|
||||||
</exclude>
|
</exclude>
|
||||||
</groups>
|
</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>
|
</phpunit>
|
||||||
|
Loading…
Reference in New Issue
Block a user