如何在vNext构建定义中运行VS2017单元测试,目前正在使用TFS 2015。 [英] How to run VS2017 unit tests in the vNext build definition, Currently using TFS 2015.

查看:83
本文介绍了如何在vNext构建定义中运行VS2017单元测试,目前正在使用TFS 2015。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是我使用TFS 2015 vnext构建2017年解决方案的方式,但无法在其中运行VS2017 UT。

Below is the way how i am building 2017 solution with TFS 2015 vnext build , but not able to run VS2017 UTs in that.

推荐答案

TFS 2015在VS测试任务中不支持选择VS 2017,但是是TFS 2017.2,您可以选择VS2017或指定vstest.console.exe的路径。查看下面的博客:

TFS 2015 doesn't support select VS 2017 in VS Test task, but is TFS 2017.2, you can either select VS2017 or specify the path to vstest.console.exe. Check the blog below:

https://simonlamb.codes/2017/04/07/vsts-and-visual-studio-2017-unable-to-determine-the-location-of -vstest-console-exe /

作为替代方案,您可以使用命令行任务代替VS Test任务,然后指定vstest.console.exe的路径。 VS 2017进行测试。

As an alternative, you can use Command Line task instead of VS Test task, and then specify the path to vstest.console.exe of VS 2017 to run the tests.

祝你好运,


这篇关于如何在vNext构建定义中运行VS2017单元测试,目前正在使用TFS 2015。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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