2016-07-14 77 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,這並沒有幫助我找到如何檢查覆蓋範圍的步驟。但看起來有人可以做到這一點。 :(

回答

相關問題