Azure DevOps MultiPlatform pipeline #709
-
Hi, I thought I could "park" coverage.cobertura.xml files on the first stage, and then on the second one download the reports and generate reports in a single sweep, using something like
where Issue here is that stage with windows has win paths on cobertura.xml files, so reportgenerator fails to find the files to build the report. How can I generate a coverage report that builds upon both stages ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @niphlod, ReportGenerator relies on the path information in the coverage files. You can do this with a litte script before executing ReportGenerator. Powershell example: (gc "/home/vsts/work/1/coverreports/your/path/coverage.cobertura.xml") | % { $_ -replace "C:\Some\Windows\Path", "/home/some/linux/path" } | Out-File "/home/vsts/work/1/coverreports/your/path/coverage.cobertura.xml" -Encoding UTF8 The script is just an example. Please adjust the paths as needed in your scenario. |
Beta Was this translation helpful? Give feedback.
Hi @niphlod,
ReportGenerator relies on the path information in the coverage files.
In your case you have to adjust the Windows paths from the first stage so that the files can be found in the Linux stage.
You can do this with a litte script before executing ReportGenerator.
Powershell example:
The script is just an example. Please adjust the paths as needed in your scenario.