-
-
Notifications
You must be signed in to change notification settings - Fork 377
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
File becomes uncovered when using both includeUncoveredFiles and processUncoveredFiles #801
Comments
CC @dvdoug |
A file that was there now has coverage removed? 👀 |
Not removed, I expressed bad myself: just reported as completely uncovered. |
So before/after the file is in the report, just after the coverage is 100->0 ? That would be...unexpected from that PR |
Exactly. I'd like to prepare a test case so you can debug it better, but I'm not able to do it soon. Still you can replicate the issue with the following steps:
|
OK I'll take a look and see if I can figure it out from that but obviously a reduced testcase would be helpful 😄. I've tried some other codebases and can't find any change to coverage |
Thank you for looking into this, @dvdoug. |
This appears to be specific to ParaTest not PHPUnit generally, and I think maybe just ParaTest's own test suite rather than users of ParaTest. It self-testing causing the issue here. It's something like this:
In the previous releases, |
If I've understood that correctly, I think ParaTest should run that particular test with a mock driver rather than the real in-process one |
Thank you very much @dvdoug for your analysis and the effort you put into all this. It seems you are right, this issue shouldn't be considered a proper bug anymore. As a final note though it would be useful to pinpoint somewhere that nested CC analysis are not idempotent to non-nested ones anymore. |
Hi, I've recently updated from
9.1.4
to9.1.5
and a file, previously reported as 100% covered, disappeared from CC and is now reported as 0%.After a
git bisect
session and few debugging, I've narrowed it down to 7e91099 and bothincludeUncoveredFiles="true"
andprocessUncoveredFiles="true"
set in the<coverage>
tag of myphpunit.xml
.If any of the two is changed to false, the CC gets back to 100% again.
The config in question is a test one from ParaTest, so I don't know whether it should or should not be correct to use both these options, but still seems to me an unexpected or undocumented behavior for a patch release.
The text was updated successfully, but these errors were encountered: