Long running unit test marked as passed fails TFS build - Object 'xxx.rem' has been disconnected or does not exist at the server.**

自闭症网瘾萝莉.ら 提交于 2019-12-02 03:59:27

Check what's exact version of Visual Studio 2017 do you installed on the build agent machine. Seems there's an issue on the MSTest.TestAdapter and MSTest.TestFramework on earlier version. Based on this thread the issue has been fixed and it's available in v1.1.13.

See the github bug: Run tests fail intermittently with a disconnected from server exception.

Please try below items to fix that:

  • Enable Clean option for Get Sources and Build step, then try it again.
  • Just try upgrading to the latest version of VS 2017, then try it again.
  • Update the MSTest.TestAdapter and MSTest.TestFramework to the latest version on the build agent machine.
  • Check if all the test projects refer to the same version of the test adapter. If not just try moving all test projects in a solution to refer the same version of the adapter.

Also below related issues for your reference:

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