Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Excluding tests from tfs build

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

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.

Any help would be greatly appreciated.

like image 776
Yag Avatar asked Feb 20 '12 11:02

Yag


1 Answers

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.

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.

like image 64
Ed Blankenship Avatar answered Sep 20 '22 23:09

Ed Blankenship