I have an Azure build pipeline with VSTest task that generates code coverage as '.coverage' format. I need to publish this back to the 'Code Coverage' tab in the build result page. Only the download code coverage result is available. How to publish code coverage using '.coverage' file?
I already tried the ReportGenerator
tool but when I pass the '.coverage' file to the tool as the report file it gives back the coverage report as zero coverage. When I open the coverage file using visual studio it shows the coverage.
##vso[task.addattachment]value
,##vso[task.uploadsummary]local file path
and##vso[task.uploadfile]local file path
. Maybe it solves your problem. You could use this commands inside a inline powershell script. Make sure that the paths to the report files are correct. – Mar Tin