-
-
Notifications
You must be signed in to change notification settings - Fork 283
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
Doesn't seem to work with clover coverage from PHPUnit #576
Comments
Thanks for your detailed issue! I fixed the problem. New release will be available within the next days! |
Whoa, thanks for a very quick reply, I appreciate it a lot!! So I suppose the next step is to get the bitbucket pipe thingy rebuilt after the fix is released. |
Correct! |
Release 5.1.13 has been published. |
@uuf6429 Just published v0.8.0 of the pipe with the fix. |
Describe the bug
This tool doesn't seem to work for clover files generated by PHPUnit.
In the logging result, it's always saying
Analyzing 0 classes
even though it also says f.e.Loading report '/app/coverage.xml'
.I dug into the source code a bit and it seems to assume that the project element always has a name attribute, but this isn't the case:
ReportGenerator/src/ReportGenerator.Core/Parser/CloverParser.cs
Line 70 in 119c33e
So I manually added that attribute and the result log changed a bit:
Now it works one step further, but then it still breaks somewhere.
Specs
ReportGenerator 4.8.1
(I think) fromloremfoobar/reportgenerator-coverage-bitbucket-pipe:0.7.0
andPHPUnit 9.5.x-dev
To Reproduce
Example coverage xml
Mixed log output (from the bitbucket pipe + report generator):
The text was updated successfully, but these errors were encountered: