使用Open Cover覆盖我的C#app

时间:2014-01-08 09:03:16

标签: c# .net code-coverage opencover

我是OpenCover的新用户。我在那里阅读文档,我成功通过定位MSTest.exe来覆盖测试应用程序,但大多数时候我不想为项目创建单元测试,在这种情况下,我可以像这样直接定位我的应用程序:

OpenCover.console.exe "-target:D:\Coverage\Chars\bin\Debug\Chars.exe" -filter:+[*]* -output:D:\Coverage\Reports\Coverage.xml -targetdir:D:\Coverage\Chars\bin\Debug\

我尝试了以上这一行,但是我收到了这个错误:

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)

我搜索了很多但没有成功。我做错了什么?

0 个答案:

没有答案