Skip to content

Docker RUN with coverlet.msbuild 3.0.2 empty report #1089

@goolzerg

Description

@goolzerg

How I use it in Dockerfile:
RUN dotnet nuget add source $nexus_url/repository/sod-nuget/index.json -n nexus && \ dotnet add package coverlet.msbuild && \ dotnet test Domain.UnitTests.csproj /p:CollectCoverage=true /p:CoverletOutputFormat=opencover

and what I get during build:

+--------+------+--------+--------+
| Module | Line | Branch | Method |
+--------+------+--------+--------+

+---------+------+--------+--------+
|         | Line | Branch | Method |
+---------+------+--------+--------+
| Total   | 100% | 100%   | 100%   |
+---------+------+--------+--------+
| Average | NaN% | NaN%   | NaN%   |
+---------+------+--------+--------+

I tried to use coverlet.collector, it works fine, but it generates report which is not comatible with sonarqube.
Is there some options to solve this issue?
Maybe there is some way to convert coverlet.collector report to approptiate for sonarqube format?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions