microsoft / codecoverage

MIT License
84 stars 11 forks source link

dotnet coverage merge leads to filenames with the leading characters "/_/" in the filenames which bricks other tools #101

Closed DerGary closed 9 months ago

DerGary commented 9 months ago

I have got 2 projects in one solution. The first project is the source code and the second project is the xunit test project.

Reproduction Steps:

The unit test files are getting the absolute path as filenames: image

the source code files are getting a relative path with leading /_/ image

Then Sonarqube for example can't find the files.

jakubch1 commented 9 months ago

Thanks for reporting this. I've fixed issue in https://dev.azure.com/dnceng/public/_artifacts/feed/test-tools/NuGet/Microsoft.CodeCoverage/overview/17.10.0-preview-24120-01. I've added logic to resolve full paths by default. There is also configuration flag DeterministicReport to skip resolving and keep relative paths.

DerGary commented 4 months ago

@jakubch1 We still experience this issue with the latest version 17.11.3. Do you have an idea why?