---
schema_version: "1"
id: 3dceb8517c3c872a77e0c233e7f22acf978e06bff190036e32a2e94ae5e06d4d
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_testing_create_quality_gate_rules.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.devops_testing_create_quality_gate_rules.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: adfb5b3624f69f06e07059b8c692bc88e501719f2c3e1567331f8d3798149736
description: Create a quality gate rule based on your testing goals. We recommend establishing criteria that are realistic yet strict enough to maintain quality.
products:
  - Salesforce Platform
release: "264"
---
# Create a Quality Gate Rule

Create a quality gate rule based on your testing goals. We recommend establishing criteria that are realistic yet strict enough to maintain quality.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col style="width:100%"></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Professional</strong> (API access required), <strong>Unlimited</strong>, and <strong>Developer</strong> Editions</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col>
          <col>
        </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="d32648e78">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d32648e78 ">To create quality gate rules:</td>

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

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d32648e78 ">To edit quality gate rules:</td>

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

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

1. From the Quality Gate Rules tab, click **New**.
2. Enter a name and description for the quality gate rule.
3. Click **Next**.
4. On the Criteria page, select the criteria that you want to set for the quality gate rule:
    
    - Severity level threshold– The quality gate rule fails if a test with a severity level equal to or higher than the threshold level fails.
    - Test pass percentage– The quality gate rule fails if the test pass percentage is less than this value.
    - Essential test failures– The quality gate rule fails if an essential test fails.
    
    See [Quality Gate Rules](https://help.salesforce.com/s/articleView?id=platform.devops_testing_ensure_high_quality_work_items_with_quality_gate_rules.htm&release=264.0.0&type=5 "Quality gate rules are checkpoints that make sure only work items that meet your quality criteria move to the next pipeline stage. Use quality gate rules to maintain code quality, ensure reliable deployments, and identify issues early in the application lifecycle. When a quality gate rule fails, you can analyze the reason and resolve any issues before attempting to promote the work item again.").
5. Save your changes.
    
    View the details of the created quality gate rule in the Quality Gate Rules tab.
6. To edit a quality gate rule:
    1. Go to the Quality Gate Rules tab, and select the quality gate rule you want to edit.
    2. Click **Edit**.
        
        ![Available quality gate rules](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_testing_quality_gate_rules.png)

#### See Also

- [Enable or Disable Quality Gate Rules for Test Suites](https://help.salesforce.com/s/articleView?id=platform.devops_testing_enable_quality_gate_rules_for_test_suites.htm&release=264.0.0&type=5 "Enable or disable quality gate rules after they’re assigned to test suites. While we recommend that you do not disable your quality gate rules, you can temporarily disable them if tests are inconsistent or to speed up deployment. After disabling, reevaluate quality gate rules to promote the changes.")