Data collector 'Code Coverage' message: No code coverage data available. Code coverage is currently supported only on Windows..
See original GitHub issueHi,
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:
- Created 2 years ago
- Comments:5
Top GitHub Comments
You are right, we’ve found the issue in runsettings and made the fix. Thank you very much for the help.
This sounds similar to #1188 where the Microsoft coverage collector was enabled through runsettings and causing a conflict with coverlet.