TL;DR; Explains how to configure TFS 2008 builds to automatically fail if any tests fail by setting TreatTestFailureAsBuildFailure to true in the build project file.

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…
Each classification [Concepts, Categories, & Tags] was assigned using AI-powered semantic analysis and scored across relevance, depth, and alignment. Final decisions? Still human. Always traceable. Hover to see how it applies.
If you've made it this far, it's worth a conversation. Tell us where you are and what you're trying to change. Martin reads every inquiry and replies personally.
Start the conversationWe partner with businesses across diverse industries, including finance, insurance, healthcare, pharmaceuticals, technology, engineering, transportation, hospitality, entertainment, legal, government, and military sectors.

Kongsberg Maritime

Hubtel Ghana

Trayport

Lockheed Martin

YearUp.org

Cognizant Microsoft Business Group (MBG)

ProgramUtvikling

Boeing

Capita Secure Information Solutions Ltd

SuperControl

Workday

Big Data for Humans

Lean SA

Higher Education Statistics Agency

Xceptor - Process and Data Automation

Slicedbread

Schlumberger

Jack Links

Royal Air Force

New Hampshire Supreme Court

Ghana Police Service

Washington Department of Transport

Nottingham County Council

Washington Department of Enterprise Services

Lockheed Martin

YearUp.org

Brandes Investment Partners L.P.

Flowmaster (a Mentor Graphics Company)

Teleplan

Microsoft