2016-07-14 76 views
0

我正在使用MVS Community 2015 for C++。我也使用过微软的单元测试框架,这真是太棒了。问题是我没有关于报道的数据。我可以在运行所有单元测试时分析C++的覆盖率吗?对于Visual Studio Community 2015,我可以使用C++的代码覆盖功能吗?

对于有一个单元测试项目中,我看到有这样的解决方案:enter image description here

但是,当我试图执行它似乎应该对托管代码只工作:

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. 

有什么想法?

编辑:我看过this article,这并没有帮助我找到如何检查覆盖范围的步骤。但看起来有人可以做到这一点。 :(

回答

相关问题