question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Data collector 'Code Coverage' message: No code coverage data available. Code coverage is currently supported only on Windows..

See original GitHub issue

Hi, We run command like this in pipeline: dotnet test $_.FullName --no-build --no-restore --filter "TestCategory=Unit | TestCategory=Component" --collect "XPlat Code Coverage" --logger trx --settings "$(DatacacheRootDir)/.devops/CodeCoverage.runsettings" --results-directory "$(Agent.TempDirectory)" We didn’t change anything from pipeline yaml set up, but this error shows up recently: Data collector 'Code Coverage' message: No code coverage data available. Code coverage is currently supported only on Windows.. Donet test command runs on linux machine though but it worked before, so I’m not sure why does it say “it is currently supported only on windows…” I also didn’t change the version of coverlet.msbuild coverlet.collector in our *.tests.csproj. I tried bumping the version but it doesn’t work too.

Does it indicate the dotnet version we use is not correct?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
runhlicommented, Aug 6, 2021

This sounds similar to #1188 where the Microsoft coverage collector was enabled through runsettings and causing a conflict with coverlet.

You are right, we’ve found the issue in runsettings and made the fix. Thank you very much for the help.

0reactions
petlicommented, Aug 6, 2021

This sounds similar to #1188 where the Microsoft coverage collector was enabled through runsettings and causing a conflict with coverlet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

.Net Core CLI Task does not publish code coverage results ...
Data collector 'Code Coverage' message: No code coverage data available. Code coverage is currently supported only on Windows…
Read more >
Data collector 'Code Coverage' failed to provide ...
Data collector 'Code Coverage' message: Data collector 'Code Coverage' failed to provide initialization information. Error: System.
Read more >
Generate code coverage for .NET Core projects
Data collector 'Code Coverage' message: No code coverage data available. Code coverage is currently supported only on Windows.
Read more >
17.4.0 Breaks pipeline code coverage · Issue #4140
Data collector 'Code Coverage' message: No code coverage data available. Code coverage is currently supported only on Windows, Linux x64 and ...
Read more >
Not able to generate ".coverage" report while running code ...
I'm trying to run code coverage testing from command line using below ... Data collector 'Code Coverage' message: Data collector 'Code ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found