Skip to content

coverlet.console works locally but generates NaN% in Cloud build #964

@agentq15

Description

@agentq15

We have a .NET Framework project.
When I run this powershell script locally everything works as expected, but in Azure Devops it only generates NaN%

$coverlet = "$pwd\coverlet.exe" & $coverlet $unitTestFile --target "dotnet" --targetargs "test $($unitTestFile) --no-build" --format "cobertura" --verbosity detailed gci -Recurse | ?{ $_.Name -eq "coverage.cobertura.xml"} | %{ &"$pwd\reportgenerator.exe" "-reports:$($_.FullName)" "-targetdir:reports" "-reportstypes:HTMLInline;HTMLChart" }

We don't use Deterministic Build

Result when run in Azure Hosted Agent:
image

Result when run in on premise Agent
image

Why isn't it working in the Cloud?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known IssueIt's a know issueduplicateThis issue or pull request already existsnetfxIssue happens only on .NET Framework version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions