在TFS 2017中仅使用MSBUILD在构建服务器上启用VSTest功能 [英] Enable VSTest functionality on build server using only MSBUILD in TFS 2017

查看:70
本文介绍了在TFS 2017中仅使用MSBUILD在构建服务器上启用VSTest功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了TFS 2017 U1,我有一个我以前安装过VS 2012和2015的构建服务器。  VSTest工作并由构建代理识别(在功能下显示VSTest_12.0和VSTest_14.0)。 但是,在安装
MSBuild Tools 2017后,在功能下没有识别出VSTest_15.0。  

I have installed TFS 2017 U1, and I have a build server that I have previously installed VS 2012 and 2015.  VSTest works and is identified by the build agent (show VSTest_12.0 and VSTest_14.0 under Capabilities).  However, after installing MSBuild Tools 2017, there is no VSTest_15.0 identified under capabilities.  

我从VS 2017代理商下载安装了VS 2017测试代理,但这并没有解决问题。 我还尝试删除并重新配置代理,因为在此过程中已完成功能扫描。 这也不起作用。

I installed the VS 2017 Test Agent from the VS 2017 Agents download, and this has not fixed the problem.  I also tried removing and re-configuring the agents, since there is a capabilities scan done during this process.  That did not work either.

如何在不安装完整VS2017的情况下在我的TFS 2017 U1 Build Server上运行VSTest 2017功能?

How can I get VSTest 2017 functionality working on my TFS 2017 U1 Build Server without installing the full VS2017?

推荐答案

您好Erik.XX,

Hi Erik.XX,

感谢您发布此处。

由于MSBuild Tools 2017中没有Vstest.Console.exe,因此在配置Build代理时TFS肯定找不到Vstest。并且没有独立的Vetest.Console.exe没有Visual Studio。作为解决方法,您可以尝试使用
视觉工作室测试代理部署  任务到在目标机器上部署测试
代理,然后使用
运行功能测试
 任务运行远程机器上的测试。

Because there is no Vstest.Console.exe in the MSBuild Tools 2017, TFS certainly could not find the Vstest when you configure the Build agent. And there is no stand-alone Vetest.Console.exe without Visual Studio. As a workaround, you could try to use the Visual Studio Test Agent Deployment task to deploy the test agent on target machine, then use the Run Functional Test task to run the test on the remote machine.

最好的问候

Limitxiao Gao

Limitxiao Gao


这篇关于在TFS 2017中仅使用MSBUILD在构建服务器上启用VSTest功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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