---
schema_version: "1"
id: 5a3b9de531148e899156e6f61bcd2fc3c676c844fbc5e9fb4b78ba3a8a8cc6fd
title: Create a Quality Gate Rule
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/devops_center_testing_create_quality_gate_rule.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.devops_center_testing_create_quality_gate_rule.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 67077677b682dcf2284835fc553db007667950709c480c3877edf650de16b716
description: Define a quality gate rule that sets the pass threshold, severity limits, or essential test requirements for a test suite.
products:
  - Salesforce Platform
release: "264"
---
# Create a Quality Gate Rule

Define a quality gate rule that sets the pass threshold, severity limits, or essential test requirements for a test suite.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience in <strong>Professional</strong> (API access required), <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions</td></tr></tbody><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Not Available in: <strong>Government Cloud Plus</strong>. Contact your Salesforce account executive for more details.</td></tr></tbody><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Not available in: <strong>EU Operating</strong> Zone. EU Operating zone is a special paid offering that provides an enhanced level of data residency commitment. Lifecycle Center <em>is</em> supported in orgs in the EU that aren't part of EU OZ, per standard product terms and conditions.</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d24057e106">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d24057e106 ">To create a quality gate rule:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d24057e106 ">Lifecycle Center Testing Manager</td>

          </tr>
        </tbody>
      </table>

Create a quality gate rule to define the exact criteria a work item must meet at a pipeline stage. You can create a rule directly from the pipeline stage card while assigning a gate.

![Quality Gate Rule window showing options to set severity level threshold, define minimum test pass percentage, and check for essential test failures](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-devops_center-264-0-0-production-enus/166010c3-4c34-4087-92ad-aea917baf524/devops_center/images/devops_center_testing_create_quality_gate_rule.png)

1. From the pipeline view, select the **Tests** tab.
2. On the stage card, click **Add Gate** for the event.
3. In the Add Quality Gates window, click **Create Now**.
4. Enter a name and description that clearly defines the rule's purpose.
5. Click **Next**.
6. Configure your criteria.
    1. Select a severity level threshold from **1 — Critical** to **5 — Info**.
    2. Enter a minimum test pass percentage.
    3. Toggle **Check for Essential Test Failures** to enforce must-pass tests.
7. Click **Save**.

The rule is immediately active and will be enforced on the next test run for the assigned stage.

#### See Also

- [Add a Quality Gate to a Test Suite](https://help.salesforce.com/s/articleView?id=platform.devops_center_testing_add_quality_gate_to_test_suite.htm&release=264.0.0&type=5 "Attach a quality gate rule to a test suite to enforce pass criteria before work items can be promoted.")
- [Remove a Quality Gate from a Test Suite](https://help.salesforce.com/s/articleView?id=platform.devops_center_testing_remove_quality_gate_from_test_suite.htm&release=264.0.0&type=5 "Detach a quality gate rule from a test suite to remove the enforcement criteria for that suite.")