Skip to content

MergeWith cobertura.xml make error  #262

@tiber76

Description

@tiber76

Hi,

I need to use /p:MergeWith to merge differents results with dotnet test with coverlet.

I use coverlet.msbuild : 2.3.2 ( but i have the same error with the last version 2.4.0 )

My command :
dotnet test "C:\Users\Tiber\source\repos\LH.api\LH.Common\Tests\LH.Common.Repository.UnitTest\LH.Common.Repository.UnitTest.csproj" /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:CoverletOutput="C:\Users\Tiber\source\repos\LH.api\LH.Common\TestResults\CodeCoverage" /p:MergeWith="C:\Users\Tiber\source\repos\LH.api\LH.Common\TestResults\CodeCoverage\coverage.cobertura.xml" --configuration Release

My First test is done without error and generate result file here :
C:\Users\Tiber\source\repos\LH.api\LH.Common\TestResults\CodeCoverage\coverage.cobertura.xml

But my second test ( to merge with the first ) fail with the same command, see error below :

image

Thank's for support.

Jérémy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions