Linux主机中.net核心的代码覆盖率

man*_*ron 3 unit-testing code-coverage xunit .net-core asp.net-core

在Linux主机中,是否存在一种可靠的方法来测量.Net Core项目(尤其是.Net Core 2)的代码覆盖率?

我已经看过被单minicover,但他们仍然有一些问题,不要允许我使用他们。

Ale*_*hev 5

VSTest命令正在解决该问题:https : //github.com/Microsoft/vstest/issues/981

OpenCover问题:https : //github.com/OpenCover/opencover/issues/601

Coverlet是最活跃的项目。

阅读Hanselman的优秀文章:https : //www.hanselman.com/blog/AutomaticUnitTestingInNETCorePlusCodeCoverageInVisualStudioCode.aspx

AltCover也是一个非常有趣的项目,可以在.net core中使用。

  • 我最近一直在测试AltCover,它似乎也可以正常工作。[https://github.com/SteveGilham/altcover](https://github.com/SteveGilham/altcove) (2认同)
  • 添加了altcover。 (2认同)