I am using the azure pipelines plug-in to generate a report from two different build machines.
A jest test coverage on one and a dotnet test coverage on the other both using cobertura.
To speed up the pipeline I have the dotnet running on an azure agent and the jest running on a self hosted agent.
The report is generate on the self hosted agent.
The dotnet sources are listed in the coverage file, these are not the same path as on the self hosted agent and the sourcedirs option only works if there is no information provided so the sources for the dotnet build are not found.
Could we fall back to the sourcesdir option if the source files specified can not be found?
The work around would be a sed replace step before the generate report as I can't make the paths the same.
The sourcedir option is not a good fit here. It may seem simple at first glance, but it get's complicated pretty quickly.
E.g.
-Sources from different base directories (you have to figure out, which sourcedir to use)
-Sources in nested directories (you have to figure out, which part of the path needs to be replaced)
I would suggest you use a little Powershell command to adjust the paths in the coverage file.
That should be simple in your case.
Understood, my case is fortunately simple to solve with a script, just wanted to make sure I wasn't missing anything.
Thanks