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)

<PropertyGroup>
  <!-- TEST ARGUMENTS
   If the RunTest property is set to true, then particular tests within a
   metadata file or test container may be specified here.  This is
   equivalent to the /test switch on mstest.exe.

   <TestNames>BVT;HighPriority</TestNames>
  -->
  <TreatTestFailureAsBuildFailure>true</TreatTestFailureAsBuildFailure>
</PropertyGroup>

Very handy…

Technorati Tags: TFBS    ALM    TFS 2008 

Software Development Technical Excellence Install and Configuration
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.​

DFDS Logo
Alignment Healthcare Logo
Teleplan Logo
Flowmaster (a Mentor Graphics Company) Logo
Akaditi Logo
Graham & Brown Logo
Higher Education Statistics Agency Logo
Microsoft Logo
Sage Logo
New Signature Logo

NIT A/S

CR2

Deliotte Logo
Xceptor - Process and Data Automation Logo
ALS Life Sciences Logo
Qualco Logo
Big Data for Humans Logo
Boeing Logo
Department of Work and Pensions (UK) Logo
Ghana Police Service Logo
Royal Air Force Logo
New Hampshire Supreme Court Logo
Washington Department of Transport Logo
Nottingham County Council Logo
Ericson Logo
ProgramUtvikling Logo

CR2

Jack Links Logo
Boeing Logo

NIT A/S