我刚刚升级到TFS 2015,我正在努力让我们的版本正常运行。我已经运行了除了单元测试之外的一切,在我的遗留XAML构建定义和我创建的基于Web的新构建定义中都失败了相同的错误消息。
从我在网上找到的这个问题很少,它与用户vstest.console.exe运行被拒绝访问命名管道,但我找不到任何有关如何访问的信息改变这一点。
我尝试在命令行窗口中针对我的单元测试DLL手动运行vstest.console.exe,它运行正常。
XAML Build Defintion:
TF900546: An unexpected error occurred while running the RunTests activity: 'Failed to initialize client proxy: could not connect to test process .'.
基于网络的构建定义:
2015-12-06T06:12:55.2314714Z Warning: Using Isolation mode to run tests as required by effective Platform:X86 and .Net Framework:Framework35 settings for test run. Use the /inIsolation parameter to suppress this warning.
2015-12-06T06:13:55.6697450Z ##[error]Error: Failed to initialize client proxy: could not connect to test process .
2015-12-06T06:13:55.6697450Z ##[error]
2015-12-06T06:13:55.6697450Z ##[error]Error: There was no endpoint listening at net.pipe://myservername/TestExecutor/5960 that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
2015-12-06T06:13:55.6697450Z ##[error]
2015-12-06T06:13:55.8416222Z ##[error]VSTest Test Run failed with exit code: 1