# Unit Test Conditions on New Code Quality Gate

**URL:** <https://community.sonarsource.com/t/unit-test-conditions-on-new-code-quality-gate/17308>\
**Category:** Suggest new features\
**Tags:** quality-profiles, sonarqube\
**Created:** [December 3, 2019, 1:35am UTC](https://community.sonarsource.com/t/unit-test-conditions-on-new-code-quality-gate/17308 "2019-12-03T01:35:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dlow](https://avatars.discourse-cdn.com/v4/letter/d/a5b964/32.png) [@dlow](https://community.sonarsource.com/u/dlow)\
**Post date:** [December 3, 2019, 1:35am UTC](https://community.sonarsource.com/t/unit-test-conditions-on-new-code-quality-gate/17308/1 "2019-12-03T01:35:40Z")

</div>

Our organisation has just upgraded to - SonarQube Enterprise Edition 8.0 (build29455)

Can the following Conditions/Metrics be made available for all branches?:  
**Unit Test Errors**  
**Unit Test Failures**

Currently they are available to add as conditions for **Conditions on Overall Code** , that is long living branches. However they are not available to be added as conditions on **Conditions on New Code**

Ideally even for short lived branches, we would like to be able to check that all Unit Tests have passed.
