TFS单元测试通过开发计算机上,但未能构建机上 [英] TFS unit tests passing on developer machine but failing on build machine

查看:161
本文介绍了TFS单元测试通过开发计算机上,但未能构建机上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有逝去的开发计算机上,但未能在TFS构建机器的一些单元测试。这些测试失败的原因不尽相同。我已经很有限建造的机器。但是我可以看看到投递文件夹,看看有什么DLL文件被部署等。

我也看到,PDB文件被部署在构建机上。

有什么办法调试并通过其为什么只生成计算机上失败的code步骤?


解决方案

  

是否有通过其为什么只code没有办法调试和步
  失败的生成计算机上?


是的,你可以连接到构建机器的过程...但是你必须登录到生成机,并具备在服务器上运行VS的实例,并有管理员权限附加到线程...

您也可以做到这一点,如果管理员愿意服务器开拓远程调试。但是,因为它开创了不止给你访问到服务器的安全风险是不可能的,这个选项是可行的两种。

所以你没有。你需要看的失败是什么,搞清楚什么会导致这样的事情发生。然后,你可以尝试解决这个问题。

I have some unit tests that are passing on developer machine but failing on TFS build machine. These tests are failing for different reasons. I have very limited access to build machine. But I could look into the drop folder and see what DLL files were deployed etc.

Also I see that pdb files were deployed on the build machine.

Is there any way to debug and step through the code on why its only failing on build machine?

解决方案

Is there any way to debug and step through the code on why its only failing on build machine?

Yes you can attach to the process on the build machine... But you would have to be logged into the Build machine and have an instance of VS running on the server and have Admin rights to attach to the thread...

You could also do it if the admins were willing to open up the server to remote debugging. But since that opens up more of a security risk than just giving you access to the server it is unlikely that this option is viable either.

So for you no. You will need to look at what the failures are and figure out what would cause that to happen. Then you can try to fix that.

这篇关于TFS单元测试通过开发计算机上,但未能构建机上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆