我正在为 C++ 使用 MVS Community 2015。我还使用了 Microsoft 的单元测试框架,这真是太棒了。问题是我没有关于覆盖率的数据。我可以在运行所有单元测试时分析 C++ 的覆盖率吗?
但是当我尝试执行时,它似乎只适用于托管代码:
Project: LessUnitTest
Configuration: Debug
Scope: None
Assembly: .....\Less\Debug\LessUnitTest.dll
Maintainability Index:
Cyclomatic Complexity:
Depth of Inheritance:
Class Coupling:
Lines of Code:
Message: The project target file '.....\Less\Debug\LessUnitTest.dll' contains no managed code.
有什么想法吗?
编辑:我看到这篇文章并没有帮助我找到如何检查覆盖率的步骤。但看起来有人可以做到这一点。:(