简体   繁体   中英

For Visual Studio Community 2015 can I use code coverage functionality for C++?

I am using MVS Community 2015 for C++. I have also used Unit Testing framework of Microsoft and that is just amazing. The problem is that I don't have data about coverage. Can I analyze the coverage for C++ while running all unit tests?

For the solution that has a project for unit testing I see that there is something like this: 在此处输入图片说明

But when I try to execute it seems that it should work only on managed code:

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.

Any thoughts?

EDIT: I have seen this article that didn't help me to find steps how to check the coverage. But looks someone could do that. :(

Visual Studio Enterprise is the only VS edition that has Code Coverage feature

https://www.visualstudio.com/vs/compare/ (Testing Tools - Code Coverage)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM