-
Notifications
You must be signed in to change notification settings - Fork 121
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
PHPUnit coverage shows "EMPTY" for all files #392
Comments
Sigh. You wrote Windows.... I'll try to have a look but i'm assuming it's a path mapping issue - again. Why do people in 2020 still use windows and drive letters...? Again, I'll try to have a look as soon as I can but since I don't usually use windows I'll have to resurrect my Windows 10 VM and see if i can debug this somehow. Any chance you can provide me with a simple sample project that exhibts the problem? |
Thanks for getting back. Can't change company policy, so also Sigh for having to use Windows. |
Thanks for the sample project. I'll try to have a look over the weekend! |
I found what cause the issue. And it had nothing to do with Windows 😅 They are in fact 2 issues. PHPUnit coverage XMLThe coverage xml generated by phpunit change with the value of With
|
Wow. Thanks for the in-depth analysis and for figuring this out. @sebastianbergmann Does the difference in output from PHPUnit qualify as a bug or as "works as intended"? :) |
I'm using phpdox to generate the documentation for a project and I'm trying to include the PHPUnit-coverage, but it shows "EMPTY" for all files, e.g. my entities:
In issue #147 you state that "EMPTY" means that the file is "Not executable (e.g. an in interface)", but this happens for all my files. Also in the generated coverage-xml, the status for all files is "PASSED", e.g. for my User-entity:
Also in the corresponding xml for the Entity (User.php.xml) coverage is marked as "100":
But somehow phpdox is not able to map the information for some reason.
Here's the part of my phpunit.xml that generates the output:
This is my phpdox.xml:
And this the output of phpdox (from Jenkins) which shows no error:
Using phpdox 0.12.0 and PHPUnit 8.5.2 running on Jenkins 2.220 on Windows.
The text was updated successfully, but these errors were encountered: