tech·nic·al·ly agile

Fail a build if tests fail

Learn how to configure TFS2008 to fail builds when tests fail, ensuring quality in your development process. Enhance your build management today!

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

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 

Software Development
Comments

Related blog posts

No related videos found.

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.​

Lean SA Logo
Slicedbread Logo
SuperControl Logo
Slaughter and May Logo
Big Data for Humans Logo
Workday Logo
YearUp.org Logo
Trayport Logo
Microsoft Logo
New Signature Logo
Alignment Healthcare Logo
Philips Logo
Higher Education Statistics Agency Logo
Bistech Logo
Akaditi Logo
Capita Secure Information Solutions Ltd Logo
Brandes Investment Partners L.P. Logo
Boeing Logo
New Hampshire Supreme Court Logo
Royal Air Force Logo
Washington Department of Enterprise Services Logo
Ghana Police Service Logo
Department of Work and Pensions (UK) Logo
Nottingham County Council Logo
Slicedbread Logo
Schlumberger Logo
Capita Secure Information Solutions Ltd Logo
Big Data for Humans Logo

NIT A/S

New Signature Logo