Skip to content

Coverlet report not generating for dotnet core project #776

@WattsC-90

Description

@WattsC-90

This appears to be a common ticket, so apologies if you roll your eyes and point me to an existing ticket..

I am running this in TeamCity:

dotnet test `
%teamcity.build.checkoutDir%\UnitTests\UnitTests.csproj `
--no-build `
-c Release `
-l "console;verbosity=normal" `
-a %teamcity.build.checkoutDir%\UnitTests\bin\Release\netcoreapp3.1 `
/p:CollectCoverage=true `
/p:CoverletOutputFormat=teamcity `
/p:CoverletOutput='./coverlet/'

in the build log, it is clearly generating the correct output (unfortunately have to show a partial screenshot due to this being work code sigh..)

image

but on the build agent, there is no report, in fact.. just an empty folder..

image

Can you help me out here? I am obviously getting the stats raw into TC, which is progress from an hour or so ago.. but I am clearly missing something somewhere!

Metadata

Metadata

Assignees

No one assigned

    Labels

    as-designedExpected behaviourtenet-reportersIssue related to coverage output files(reporters)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions