0

我是OpenCover for .net 的新手,我阅读了那里的文档,我成功地通过定位 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)

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

4

0 回答 0