NCover support with Moles

流过昼夜 提交于 2019-12-02 05:28:38

I dug around and found a way to use NCover in at least one simple example using Moles context. Check out this thread: http://www.ncover.com/forum/show_topic?id=1191

Ruud,

Unfortunately, Moles and NCover are incompatible at this time. The problem lies in the fact that NCover sets up some environment vars, which Moles subsequently resets for its own use during the profiling session. It's definitely something that needs to be tackled. You might try asking the folks at Microsoft to consider a workaround for this issue.

Shaun Wilde

Have you tried the CLRMONITOR_EXTERNAL_PROFILERS environment variable?

set CLRMONITOR_EXTERNAL_PROFILERS={3FB1CC1E-1C17-4A37-9C18-BF3DB8F10E46}

And then run ncover to call mstest as normal you would otherwis

I used this technique successfully with OpenCover see No Coverage for Moles Tests on x64 Windows Server 2003

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