NUnit 2.5.8,大量 nunit-agent.exe
每次我在 nunit 中运行测试时,我都会得到另一个 nunit-agent,它不会退出测试完成,或者在 nunit 中重新加载测试或重新启动 nunit 时。 当我尝试从 VS2010 附加到进程并尝试调试正在运行的测试时,这个不断增加的 nunit-agent.exe 列表会产生越来越多的问题
任何想法, 尝试任务杀死这些进程不是答案...... (我的环境VS2010,dot net 4.0,nunit 2.5.8,...)
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, ... )
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我刚刚遇到了同样的问题。修复方法是编辑 NUnit.exe.config 文件并将其添加:
作为 configuration 元素的子元素。
它还修复了另一个问题,即您无法从调试器附加到 NUnit 以便在测试中设置断点。
I've just encountered the same problem. The fix is to edit the NUnit.exe.config file and add this:
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.5.9(开发版本)解决了这个问题。但这还有其他问题 - 所以肖恩的答案更好。
I fixed this problem by upgrading to version 2.5.9 (development build). But this has other problems - so Sean's answer is better.