Skip to content

In coverage.cobertura.xml not getting data locally. #1356

@vishnuprakash9845

Description

@vishnuprakash9845

Hi All,

I developed sample Dot Net Core project with 3 UI Tests.
Installed the dotnet tool install --global coverlet.console
Check the Microsoft.NET.Test.Sdk which is 17.2.0

I am trying to generate the coverage file locally first. Ran the below command

dotnet test --collect:"XPlat Code Coverage"

Code coverage file got generated at "*\TestsDotNetCore\TestResults\589ed878-3fe6-4b0e-893a-594a5bf32a53" location

when I open the file getting "No data XML"

image

===================================================================================

But If I run the same tests using Visual Studio -> Test -> Analyze Code Coverage for all the tests I am getting coverage data.

image

I went through the below link didn't get where I am going wrong. Can any one please help me

https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/VSTestIntegration.md

Context:

OS: Windows 10 64 bit,
Coverlet Collector: 3.1.2,
MsTest: 2.2.10,

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions