I have a classic build pipeline in Azure DevOps that builds and run tests for a .Net Core 3.1 app. I am using self-hosted build agents running Windows Server 2019 OS
Below is the pipeline screenshot
My tasks:
- Restore Nuget
- Build the solution in release mode
- Install latest vstest.console.exe tool
- Run tests using above tool and generate .coverage file
- Install CodeCoverage.exe from Nuget
- PowerShell script to convert .coverage to .xml
- Using ReportGenerator task to generate HTML and Cobertura (HTMLInline;HTMLChart;Cobertura)
- Publish the code coverage results to the server using Cobertura.xml from step 7 and also uploading HTML report folder
Publish Code Coverage Task The HTML report directory is generated by ReportGenerator task.
Build runs successfully Publish Code Coverage task log
Build run summary
Published files by the build
Code Coverage tab
Issue: The code coverage tab does not display the HTML reports