Skip to content

Commit a51bcbb

Browse files
authored
Align code coverage settings with documentation
After noticing slow coverage collection on our jenkins server for our symfony project, i noticed after some time that we were missing the on the whitelist configuration the processUncoveredFilesFromWhitelist attribute. I tried to backtrace why this configuration was missing and realized that this might come from the phpunit flex recipe. So here we go with the fix. Fixes issues with slow coverage collection mentioned here: sebastianbergmann/phpunit#2489 Also the documentation already includes the configuration: https://symfony.com/doc/4.4/create_framework/unit_testing.html https://symfony.com/doc/current/create_framework/unit_testing.html
1 parent a796c12 commit a51bcbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

phpunit/phpunit/4.7/phpunit.xml.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
</testsuites>
2121

2222
<filter>
23-
<whitelist>
24-
<directory>src</directory>
23+
<whitelist processUncoveredFilesFromWhitelist="true">
24+
<directory suffix=".php">src</directory>
2525
</whitelist>
2626
</filter>
2727
</phpunit>

0 commit comments

Comments
 (0)