-
Notifications
You must be signed in to change notification settings - Fork 389
coverlet.console works locally but generates NaN% in Cloud build #964
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Likely you're hitting a known issue https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/KnownIssues.md#1-vstest-stops-process-execution-earlydotnet-test |
Collector only works for .NET Core but we use .NET Framework. Any other suggestions? |
It depends on project(sometimes it works thanks to same type forward between core/netfx), have you tried? |
Tried now and have added the package but I get this |
Can you attach the command line pls? |
This doesn't do anything So this is what got me the message above: |
Are you using new project style or old one? https://docs.microsoft.com/en-us/visualstudio/msbuild/how-to-use-project-sdk?view=vs-2019 |
Old style, unfortunately |
Ah coverlet is fully supported only on new project style, apologize but for now you need to wait for this fix microsoft/vstest#2278 (comment) |
Closed in #970 |
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:

Result when run in on premise Agent

Why isn't it working in the Cloud?
The text was updated successfully, but these errors were encountered: