Coverlet is very slow
See original GitHub issueHi,
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:
- Created 2 years ago
- Comments:6
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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:
Look at these docs: https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/MSBuildIntegration.md#excluding-from-coverage .
@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