OpenCover/NUnit can't find PDB files

▼魔方 西西 提交于 2019-12-01 04:27:19

Found a solution, I was missing the /noshadow switch for nunit. I.e. the target args should be:

-targetargs:"..\Web.UnitTests\bin\Debug\Web.UnitTests.dll /noshadow"

Works perfectly now.

NewUnhandledException

Register the opencover DLL (use the x86 or x64 DLL):

regsvr32 /n /i:user C:OpenCover.4.5.3723\x86\OpenCover.Profiler.dll

In the openCover args, use -register:user if it does not work use -register:path32.

Lareau

I know you're issue is solved but I was experiencing similar issue to you. I had already done the /noshadow thing.

With Visual studio 2015, make sure to update to the latest version of OpenCover as explained here. - OpenCover/NUnit can't find PDB files

Would have saved me an hour of headaches.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!