Skip to content

Upgrade from MSTest from 3.7.3> has 'Code Coverage' issues #185

@prashanthnmurthy

Description

@prashanthnmurthy

With MSTest package versions above 3.7.3 (Current version is 3.10.0), I’m unable to collect code coverage data using dotnet test in Azure DevOps pipelines with a Windows container image.

I receive the following message from the Dotnet test task: "Data collector 'Code Coverage' message: No code coverage data available. Profiler was not initialized."

I also tried using coverlet, but that didn’t work either and still shows 0% coverage.

Could you advise on a solution or suggest next steps?

Expected behavior

Code coverage tab should show the details as it was showing with MSTest 3.7.3

Actual behavior

Code coverage shows blank.

Image

Image

Additional context

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