TFS2015 - 在vNext构建期间确定受影响的测试 [英] TFS2015 - Determine impacted tests during vNext build
问题描述
我们有几千个单元测试在我们的一个项目中运行。这些目前需要十多分钟才能运行,我试图减少这个时间。
我正在查找的一件事是确定哪些测试受到影响最新的代码更改,并且只运行那些受影响的测试。这似乎是TFS的一个功能,但所有的教程都是从TFS2010和旧的XAML版本,而不是在TFS2015的新vNext版本。
有任何经验,让这工作吗?
按照本教程:
但没有似乎是任何测试影响文件生成的。
来自Microsoft的回答:
Hi Steve,
感谢您的帖子。
我在TFS 2015 vNext构建中接受了测试,相同的结果。
在
中似乎没有Analysis测试影响= True / False选项TFS 2015 vNext构建测试任务,此选项存在于XAML构建
定义。
对于这种情况,请将其提交到用户语音网站:
http://visualstudio.uservoice.com/forums/121579-visual-studio ,
Microsoft工程师将对其进行严肃评估。
We've got several thousand unit tests that run in one of our projects. These currently take over ten minutes to run, and I'm trying to reduce this time.
One of the things I'm looking at is determining which tests are impacted by the latest code changes and only run those impacted tests. This seems to be a feature that TFS has, but all of the tutorials are from TFS2010 and the old XAML builds and not for the new vNext builds in TFS2015.
Does anyone have any experience in getting this to work?
Following this tutorial: https://msdn.microsoft.com/en-us/library/ff576128(v=vs.100).aspx
I've defined a .testsettings file, and referenced it from a .runsettings file, and then in TFS2015 build I've set the .runsettings file as the Run Settings here:
But there doesn't seem to be any test impact files generated.
Answer from Microsoft:
Hi Steve,
Thanks for your post.
I tested it in my TFS 2015 vNext build and received the same result.
It seems there’s no the Analysis test impact = True/False option in TFS 2015 vNext build Test task, this option is exist in XAML build definition.
For this scenario, please submit it to User Voice site at: http://visualstudio.uservoice.com/forums/121579-visual-studio, Microsoft engineers will evaluate it seriously.
这篇关于TFS2015 - 在vNext构建期间确定受影响的测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!