简体   繁体   English

TFS2015-在vNext构建期间确定受影响的测试

[英]TFS2015 - Determine impacted tests during vNext build

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. 这似乎是TFS的一项功能,但是所有教程均来自TFS2010和旧的XAML版本,而不是TFS2015中的新vNext版本。

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 遵循本教程: 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: 我已经定义了.testsettings文件,并从.runsettings文件中引用了它,然后在TFS2015构建中,我将.runsettings文件设置为“运行设置”:

在此处输入图片说明

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. 我在TFS 2015 vNext版本中对其进行了测试,并收到了相同的结果。

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. 在TFS 2015 vNext build Test任务中似乎没有Analysis test effect = True / False选项,该选项存在于XAML构建定义中。

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. 对于这种情况,请将其提交给用户语音网站,网址为: http : //visualstudio.uservoice.com/forums/121579-visual-studio,Microsoft工程师将对此进行认真评估。

https://social.msdn.microsoft.com/Forums/en-US/610e304d-608e-49e9-8fcc-e65617828a6f/determine-impacted-tests-during-vnext-build?forum=tfsbuild https://social.msdn.microsoft.com/Forums/zh-CN/610e304d-608e-49e9-8fcc-e65617828a6f/determine-impacted-tests-during-vnext-build?forum=tfsbuild

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM