从 tfs 构建中排除测试 [英] Excluding tests from tfs build

查看:44
本文介绍了从 tfs 构建中排除测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从我的持续集成构建中排除一些测试,但我还没有找到这样做的方法.

I want to exclude some tests from my continuous integration build but I haven't found a way to do so.

我尝试过的一件事是将这些测试的优先级设置为 -2,然后在构建中我指定了最小测试优先级 = -1,但它仍然运行这些测试.

One of the things I've tried was to set up the priority of those tests to -2 and then on the build I specified Minimum Test Priority = -1 but it still run those tests.

任何帮助将不胜感激.

推荐答案

您应该使用Test Category"方法,而不是使用已描述的Test Lists".测试列表 &VSMDI 功能实际上已在 Visual Studio 2010 中弃用,Microsoft 可能会在 Visual Studio 的未来版本中完全删除该功能.

Instead of using "Test Lists" that have been described, you should use the "Test Category" method. The test lists & VSMDI functionality have actually been deprecated in Visual Studio 2010 and Microsoft may remove the feature completely in a future version of Visual Studio.

如果您想了解有关如何使用测试类别的更多信息,尤其是在您的自动化构建过程中,请查看此博客文章:http://www.edsquared.com/2009/09/25/Test+Categories+And+Running+A+Subset+Of+Tests+In+Team+Foundation+Server+2010.aspx

If you'd like some more information about how to use test categories especially with your automated build process, check out this blog post: http://www.edsquared.com/2009/09/25/Test+Categories+And+Running+A+Subset+Of+Tests+In+Team+Foundation+Server+2010.aspx

您还可以通过在类别名称前指定 !(感叹号)字符来排除运行的测试类别,以进一步定义您的过滤器.

You can also exclude test categories from running by specifying the ! (exclamation point) character in front of the category name to further define your filter.

这篇关于从 tfs 构建中排除测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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