本文介绍了TFS2015 - 在vNext构建期间确定受影响的测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有几千个单元测试在我们的一个项目中运行。这些目前需要十多分钟才能运行,我试图减少这个时间。



我正在查找的一件事是确定哪些测试受到影响最新的代码更改,并且只运行那些受影响的测试。这似乎是TFS的一个功能,但所有的教程都是从TFS2010和旧的XAML版本,而不是在TFS2015的新vNext版本。



有任何经验,让这工作吗?



按照本教程:



但没有似乎是任何测试影响文件生成的。

解决方案

来自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:

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

这篇关于TFS2015 - 在vNext构建期间确定受影响的测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 11:53