NUnit 2.5.8, lots of nunit-agent.exe

别说谁变了你拦得住时间么 提交于 2019-11-27 17:50:18

问题


Each time I run a test in nunit I get another nunit-agent, which does not exit the test completes, or when the tests are reloaded in nunit or when I restart nunit. This ever increasing list of nunit-agent.exe's creates a increasing problem when I try to attach to process from VS2010 and try to debug the running test

Any ideas, Trying to task kill these process is not the answer .... (my environment VS2010, dot net 4.0, nunit 2.5.8, ... )


回答1:


I've just encountered the same problem. The fix is to edit the NUnit.exe.config file and add this:

<startup>
  <requiredRuntime version="4.0.30319" />
</startup>

as a child of the configuration element.

It also fixes another problem which is that you couldn't attach to NUnit from the debugger in order to set breakpoints in your tests.




回答2:


I fixed this problem by upgrading to version 2.5.9 (development build). But this has other problems - so Sean's answer is better.



来源:https://stackoverflow.com/questions/4303421/nunit-2-5-8-lots-of-nunit-agent-exe

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