Skip to content

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

@runhli

Description

@runhli

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?

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