Closed uuf6429 closed 1 year ago
Thanks for your detailed issue!
I fixed the problem. PHPUnit seems to have changed the format of its Clover interpretation (see #292).
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.
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. I also created a PR for the bitbucket pipeline: https://github.com/LoremFooBar/reportgenerator-coverage-bitbucket-pipe/pull/1
@uuf6429 Just published v0.8.0 of the pipe with the fix. On a side note, feel free to contact me if you have any feedback on the pipe :)
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: https://github.com/danielpalme/ReportGenerator/blob/119c33ec80c55f280e50512a6432029184ea42d4/src/ReportGenerator.Core/Parser/CloverParser.cs#L70 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):