How to halt build after test failure?

Is there a way to halt a build -- ie, stop executing build actions -- following a test failure?  I have several deployment steps that I want to run only if all tests pass.  Would a better way to do this be to create a separate deployment configuration that's triggered by a successful build/test configuration?

1 comment
Comment actions Permalink

Hi John

This is intended behavior.

Please check that Fail build if at least one test failed option is enabled in build configuration settings.
What testing framework do you use? We had related fixes for NUnit in TeamCity 6.5.2


Please sign in to leave a comment.