当 MSTest 从 CruiseControl.NET 运行时,VsPerfMon.exe 和 VsTestHost.exe 进程挂起
我使用 CruiseControl.NET 和 MSTest 来构建我的 vs2008 项目并运行我的单元测试。
如果我从 Visual Studio 2008 运行测试,它们会完美运行。但是,当 CruiseControl 启动测试时,VsPerfMon.exe 和 VsTestHost.exe 进程会挂起,直到我从任务管理器结束它们。这意味着巡航控制本身也挂起,并且我在巡航控制中的构建从未得到结果。
有人知道我的问题的解决方案是什么吗?
谢谢,
D
I'm using CruiseControl.NET with MSTest to build my vs2008 project and run my unit tests.
If I run the tests from Visual Studio 2008, they work perfectly. However, when the tests are started by CruiseControl, the VsPerfMon.exe and VsTestHost.exe processes hang until i end them from the taskmanager. This means that cruisecontrol itself hangs also and i never get a result for my build in cruisecontrol.
Does anybody have any idea what might be the solution to my problem?
Thanks,
D
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
听起来他们可能正在等待用户输入? - 您可以尝试自己在服务器上运行 msbuild 任务(如果您使用的是 NAnt)来检查
还要检查 CruiseControl.Net 服务运行的用户帐户,也许将其切换到您的用户帐户,看看是否会改变它- 这样你就会知道它是否与帐户权限等有关
This sounds like they may be waiting for user input? - You could try running the msbuild task (or NAnt if thats what you use) on the server yourself to check
Also check what user account the CruiseControl.Net service is running as and maybe switch it to your user account and see if that changes it - that way you would know if its related to account permissions etc
检查这个http://social .msdn.microsoft.com/Forums/pl-PL/tfsbuild/thread/af706a24-d47a-4a90-b3e6-beb5691f3aa0
还没有测试过...
check this http://social.msdn.microsoft.com/Forums/pl-PL/tfsbuild/thread/af706a24-d47a-4a90-b3e6-beb5691f3aa0
have not tested yet...
可能解决方案 是添加 AfterCompile 目标以在测试运行之前终止 VSPerfCmd。
Possible solution would be to add a AfterCompile target to kill the VSPerfCmd before the tests run.