我使用OpenCover http://nuget.org/packages/opencover并写了下面的批处理文件来运行单元测试和生成代码覆盖率统计PDB文件:当我运行该批处理文件OpenCover/NUnit的找不到
echo off
echo ***************************
echo *** Running NUnit tests ***
echo ***************************
"..\packages\OpenCover.4.0.804\OpenCover.Console.exe" -register:user -target:"..\NUnit 2.6\bin\nunit-console-x86.exe" -targetargs:"..\Web.UnitTests\bin\Debug\Web.UnitTests.dll" -output:coverage.xml
echo **************************************
echo *** Generating coverage statistics ***
echo **************************************
"..\packages\ReportGenerator.1.6.0.0\ReportGenerator.exe" "-reports:coverage.xml" "-targetdir:%CD%"
echo ***********************************
echo *** Launching Internet Explorer ***
echo ***********************************
start "C:\Program Files (x86)\Internet Explorer\iexplore.exe" "%CD%\Index.htm"
pause
然而我得到的错误:
Committing...
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文件夹中: “.. \ Web.UnitTests \ BIN \调试\”
得到任何帮助,
感谢,
谢谢,这有帮助。 – JoshGough
这也帮助了我,谢谢! – willem