Reputation: 166
Is there a reliable way of measuring code coverage for .Net Core projects (in particular .Net Core 2) in Linux hosts?
I have looked at coverlet and minicover but they still have some issues that don't allow me to use them.
Upvotes: 5
Views: 2969
Reputation: 1734
VSTest command is working on that issue: https://github.com/Microsoft/vstest/issues/981
OpenCover issue: https://github.com/OpenCover/opencover/issues/601
Coverlet is the most active project.
Read excellent article of Hanselman: https://www.hanselman.com/blog/AutomaticUnitTestingInNETCorePlusCodeCoverageInVisualStudioCode.aspx
AltCover is also very interesting project that works in .net core.
Upvotes: 6