question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Coverlet is very slow

See original GitHub issue

Hi,

I’m trying to add coverlet to project that I’m working now, The application is a monolith, when I run the test without code coverlet it’s took around 5 min, and I run with coverlet it’s taking around 20min, Is there anything that I can do run it faster?

I’m using coverlet.msbuild

The command I’m using

dotnet test -c Release --no-build --logger:"junit;LogFilePath=/var/tmp/{assembly}-test-result.xml;MethodFormat=Class;FailureBodyFormat=Verbose" -p:CollectCoverage=true -p:CoverletOutputFormat=opencover -p:Exclude="[Data.Migrations]*%2c[DbRoutines]*%2c[NServiceBus]*"

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
lillo42commented, Jan 6, 2023

@olegd-superoffice it was EF database migration code, unfortunately, I don’t remember the code I did (I don’t have access to it); I think it was:

dotnet test -c Release --no-build  /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[Data.Migrations]*"

Look at these docs: https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/MSBuildIntegration.md#excluding-from-coverage .

1reaction
lillo42commented, Feb 17, 2022

@petli the -p:SingleHit=true didn’t work =( but I found my issue, the problem was my migration code, when I excluded it, it’s became much more faster

Read more comments on GitHub >

github_iconTop Results From Across the Web

coverlet/Documentation/KnownIssues.md at master
Coverlet collects and writes hits data on process exit, if for some reason the process is too slow to close, it will be...
Read more >
dotnet test --collect:"XPlat Code Coverage" taking too long ...
The execution doesn't take too long, however with the below command it goes upto 40-50 minutes in local as well as in the...
Read more >
NET Core Code Coverage as a Global Tool with coverlet
NET Core Global Tools are really taking off right now. ... Coverlet is a cross platform code coverage tool that's in active development....
Read more >
Automatic Unit Testing in .NET Core plus Code Coverage ...
We're close with this setup, although it's a little slow. Coverlet can produce opencover, lcov, or json files as a resulting output file....
Read more >
Small Things by Slow Process
A variety of small, beautiful things handmade and designed by Slow ... 'Go Slow' Farmer Tee in Black | XS-XL ... Coverlet Catch-All...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found