OpenCcpCoverage在Visual Studios 2015中找不到pdb文件

时间:2016-10-12 20:51:19

标签: c# visual-studio code-coverage

我试图了解cpp项目的覆盖范围,但我继续输出覆盖率为0%的html,

OpenCppCoverage.exe --sources "C:/WorkSpace/project" --excluded_sources "C:/Worksapce/project/libs" --quiet --cover_children -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" dTests.dll /Platform:X64  

但如果我选择特定的测试,我会得到正确的覆盖率,

 OpenCppCoverage.exe --sources "C:/WorkSpace/project" --excluded_sources "C:/Worksapce/project/libs" --quiet --cover_children -- "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" dTests.dll /Platform:X64 /Tests:"TestMethod1,TestMethod2"

这里是VSTest的参考: VSTest.Console [https://msdn.microsoft.com/es-es/library/jj155800.aspx]

所以,我认为在OpenCppCoverage寻找方法的方式可能会有些麻烦。任何想法?

0 个答案:

没有答案