coverlet icon indicating copy to clipboard operation
coverlet copied to clipboard

Unable to merge results in cobertura format

Open HT2207 opened this issue 3 years ago • 1 comments

I have one result file generated using

dotnet test ./CodeCoverageSolutionLevel/CodeCoverageSolutionLevel.csproj -l trx -r TestResults /p:CollectCoverage=true /p:CoverletOutput=../TestResults/coverage1 /p:CoverletOutputFormat=cobertura

now I am running code coverage for other project and want to merge the results by executing

dotnet test ./CodeCoverageSolutionLevel2/CodeCoverageSolutionLevel2.csproj -l trx -r TestResults /p:CollectCoverage=true /p:CoverletOutput=../TestResults/coverage2 /p:CoverletOutputFormat=cobertura /p:MergeWith="../TestResults/coverage1.cobertura"

But after running this coverage2.cobertura is generated with only coverage of CodeCoverageSolutionLevel2.csproj. I think it is overwritten the result file not merged with coverage1.cobertura

Please help here to merge the results of different projects in solution Note : I am using command line

HT2207 avatar Mar 30 '21 12:03 HT2207

Please take a look at our working sample to understand where is the problem https://github.com/coverlet-coverage/coverlet/tree/master/Documentation/Examples/MSBuild/MergeWith

MarcoRossignoli avatar Apr 03 '21 18:04 MarcoRossignoli

This issue is stale because it has been open for 3 months with no activity.

github-actions[bot] avatar Sep 17 '23 01:09 github-actions[bot]