-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code coverage filter configuration is not passed to child processes #1681
Comments
👍 Also affected, PHPUnit 4.6.6 |
Can you please test whether dc8726a solves your problem? |
Hi, it fixed the original problem (now the coverage whitelist defined in phpunit.xml is respected even for tests run in separate process), however, the coverage counting is now broken: The original coverage witih PHPUnit 4.6.9: Coverage with the dc8726a: Note few files are not included in the new report (866 instead of 889), which is proper behavior, however, the percentage is miscalculated. It looks like only the classes tested in separate process were counted. |
I have merged dc8726a into |
Code coverage simply gets enabled for tests that run in child processes, configuration is not carried forward. The code coverage library doesn't filter data that is merged in, so whitelists and blacklists are not respected when tests are run in a separate process.
Related sebastianbergmann/php-code-coverage#327
I would expect to not see coverage data for NotWhitelisted.php. Avoiding the test that runs in a child process correctly filters the coverage data:
The text was updated successfully, but these errors were encountered: