Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#185 19 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
azure, csharp
Domain
ci-cd, testing

Research direction

Start by reproducing dotnet test code coverage in the Azure DevOps Windows container with MSTest 3.7.3, then compare it with versions above 3.7.3, including 3.10.0. Check whether the profiler initialization failure also occurs with coverlet; done means the pipeline's Code Coverage tab contains coverage details instead of being blank or reporting 0%.

Written by the indexing model from the issue text.

Description

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

Dominant language
C#
Stars
125
Forks
17
Avg merge
1h 17m
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/codecoverage

All issues in microsoft/codecoverage

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.