Closed SatheshSelvaraj closed 8 months ago
Thanks for your sample files.
The problem is/was that the listed files in the OpenCover file do not exist on disk (e.g. [dbo].[sp_alterdiagram]
).
Therefore ReportGenerator
is not able to read the file which resulted in an empty <lines />
element.
I changed the behavior now. If a file does not exist at least the lines from the OpenCover file are represented in the Cobertura output.
Please try again. And I would be happy if you update your review to 5 stars :-)
Hi danielpalme,
Thank you for your help. We are able to publish the correct report now. Much appreciated on your kindly support.
Thanks
Awesome!
Hi All,
We are working on TSQL code coverage, and successfully generated the opencoverxml file using powershell task. But we are unable to convert the opencoverxml file into cobertura file to publish into SonarQube report, its missing with line of coverage data while using the report generator tool via Azure DevOps pipeline. Can you please assist on this request.
To Reproduce The following input helps to reproduce your issue:
post conversion the line of code is not covered and piblished.
The output file that we are getting through HTML and XML, but it is unable to convert into Cobertura file using report generated. We can able to publish the code coverage only if it is converted into cobertura.
HTMLXMfile-correct output.zip