It took me longer than I thought it would to find this, but is you are using TFS2008 and you want builds to fail if any of the tests fail then you can add the following to the tests properties group in your build project (TFSBuild.prof)
1<PropertyGroup>
2 <!-- TEST ARGUMENTS
3 If the RunTest property is set to true, then particular tests within a
4 metadata file or test container may be specified here. This is
5 equivalent to the /test switch on mstest.exe.
6
7 <TestNames>BVT;HighPriority</TestNames>
8 -->
9 <TreatTestFailureAsBuildFailure>true</TreatTestFailureAsBuildFailure>
10</PropertyGroup>
Very handy…
No related videos found.
If you've made it this far, it's worth connecting with our principal consultant and coach, Martin Hinshelwood, for a 30-minute 'ask me anything' call.
We partner with businesses across diverse industries, including finance, insurance, healthcare, pharmaceuticals, technology, engineering, transportation, hospitality, entertainment, legal, government, and military sectors.
Trayport
Cognizant Microsoft Business Group (MBG)
Boeing
Big Data for Humans
Jack Links
Schlumberger
Graham & Brown
Workday
Kongsberg Maritime
Hubtel Ghana
Milliman
Philips
YearUp.org
Brandes Investment Partners L.P.
Illumina
Emerson Process Management
Slaughter and May
SuperControl
Royal Air Force
Department of Work and Pensions (UK)
Nottingham County Council
Ghana Police Service
Washington Department of Enterprise Services
New Hampshire Supreme Court
Cognizant Microsoft Business Group (MBG)
Boeing
Slicedbread
Schlumberger
DFDS
Emerson Process Management