Visual studio 2008 OpenCover和GoogleTest-投诉PDB缺失
我目前正在进行的构建使用32位环境中的VisualStudio2008(Professional)进行编译。我们一直在使用Google测试框架来创建单元测试。我们正在尝试使用OpenCover报告代码覆盖率,它返回Visual studio 2008 OpenCover和GoogleTest-投诉PDB缺失,visual-studio-2008,code-coverage,googletest,opencover,Visual Studio 2008,Code Coverage,Googletest,Opencover,我目前正在进行的构建使用32位环境中的VisualStudio2008(Professional)进行编译。我们一直在使用Google测试框架来创建单元测试。我们正在尝试使用OpenCover报告代码覆盖率,它返回 "no results - no assemblies that matched the supplied filter were instrumented. this could be due to missing PDBs for the assemblies that matc
"no results - no assemblies that matched the supplied filter were instrumented. this could be due to missing PDBs for the assemblies that match the filter. please review the output file and refer to the Usage guide (Usage.rtf)"
当我看到控制台上显示的结果时,测试可执行文件确实运行了。PDB与Google测试可执行文件位于同一目录中。我使用的命令:
OpenCover.Console.exe -target:<Full Path Unit Test Executable> -targetdir:<Directory of the exeutable which also includes the PDB> -output:cover.xml
OpenCover.Console.exe-target:-targetdir:-output:cover.xml
注意:目录和exeutable不包含空格,所以我省略了引号,但我尝试过使用它或不使用它,结果是一样的
我尝试过的事情:
- 我已经明确注册了OpenCover.Profile.dll
- 我使用了-register:user参数
- 我曾尝试使用-targetargs:“/noshadow”(和noiseolation),我相信这是MSTest和NUnit特有的,但不是GoogleTest特有的
- 我已尝试忽略targetdir参数
- 我已经安装了VS2010重新分发版