Skip to content

[Question]: Publish code coverage with dotnet test #21101

Open
@scrocquesel-ml150

Description

@scrocquesel-ml150

Task name

DotNetCoreCLI

Task version

2.257.1

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Ubuntu

Question

I have a dotnet project with XunitV3 for unit testing. I have followed https://learn.microsoft.com/fr-fr/dotnet/core/testing/microsoft-testing-platform-extensions-code-coverage to enable code coverage with MTP.

Test results (.trx) are published but code coverage is not published.

The test command is configured with arguments '-- --report-xunit-trx --results-directory $(Agent.TempDirectory) --coverage'

How to publish them ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions