Failure Conditions for Squish tests

Last edited on

Introduction

In TeamCity, the Failure Conditions section of the Build Configuration Settings page can be used to adjust the conditions when a build should be marked as failed. If there is a failure in any Test Case, then this Test Case will be marked as failed, which will fail the entire build. It is a good practice to ensure that a build is marked as failed not only when there is a failed test.

It may happen that an error occurs before tests are started. In this scenario, we would like to ensure that build is marked as failed.

Solution

We recommend the following Common Failure Conditions settings for running Squish tests

Common Failure Conditions settings