a·gen·tic a·gil·i·ty

Fail a build if tests fail

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.

Published on
1 minute read
Image
https://nkdagility.com/resources/VuY5udPg1uD
Subscribe

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…

Technorati Tags: TFBS   ALM   TFS 2008

Smart Classifications

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.

Subscribe

Connect with Martin Hinshelwood

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.

Our Happy Clients​

We partner with businesses across diverse industries, including finance, insurance, healthcare, pharmaceuticals, technology, engineering, transportation, hospitality, entertainment, legal, government, and military sectors.​

YearUp.org Logo

YearUp.org

Big Data for Humans Logo

Big Data for Humans

Workday Logo

Workday

Healthgrades Logo

Healthgrades

Lockheed Martin Logo

Lockheed Martin

Akaditi Logo

Akaditi

Graham & Brown Logo

Graham & Brown

Deliotte Logo

Deliotte

Epic Games Logo

Epic Games

Milliman Logo

Milliman

Xceptor - Process and Data Automation Logo

Xceptor - Process and Data Automation

Boxit Document Solutions

New Signature Logo

New Signature

Jack Links Logo

Jack Links

Higher Education Statistics Agency Logo

Higher Education Statistics Agency

Boeing Logo

Boeing

Teleplan Logo

Teleplan

Flowmaster (a Mentor Graphics Company) Logo

Flowmaster (a Mentor Graphics Company)

Royal Air Force Logo

Royal Air Force

Ghana Police Service Logo

Ghana Police Service

Nottingham County Council Logo

Nottingham County Council

New Hampshire Supreme Court Logo

New Hampshire Supreme Court

Washington Department of Enterprise Services Logo

Washington Department of Enterprise Services

Department of Work and Pensions (UK) Logo

Department of Work and Pensions (UK)

Sage Logo

Sage

YearUp.org Logo

YearUp.org

Jack Links Logo

Jack Links

Trayport Logo

Trayport

Bistech Logo

Bistech

Brandes Investment Partners L.P. Logo

Brandes Investment Partners L.P.