{
  "doc": {
    "id": "cloud/features/smart-orchestration/spec-prioritization",
    "title": "Spec Prioritization",
    "description": "Run failed specs first to save time and reduce CI costs with Cypress Cloud's Spec Prioritization feature.",
    "section": "cloud",
    "source_path": "/llm/markdown/cloud/features/smart-orchestration/spec-prioritization.md",
    "version": "ce02913654e2655ee63448bdc92bb92c7b46a619",
    "updated_at": "2026-04-22T19:37:51.587Z",
    "headings": [
      {
        "id": "cloud/features/smart-orchestration/spec-prioritization#spec-prioritization",
        "text": "Spec Prioritization",
        "level": 1
      },
      {
        "id": "cloud/features/smart-orchestration/spec-prioritization#what-youll-learn",
        "text": " What you'll learn",
        "level": 5
      },
      {
        "id": "cloud/features/smart-orchestration/spec-prioritization#activate-spec-prioritization-in-cypress-cloud",
        "text": "Activate Spec Prioritization in Cypress Cloud",
        "level": 3
      }
    ]
  },
  "content": {
    "type": "root",
    "children": [
      {
        "type": "heading",
        "depth": 1,
        "children": [
          {
            "type": "text",
            "value": "Spec Prioritization"
          }
        ]
      },
      {
        "type": "heading",
        "depth": 5,
        "children": [
          {
            "type": "text",
            "value": " What you'll learn"
          }
        ]
      },
      {
        "type": "list",
        "ordered": false,
        "start": null,
        "spread": false,
        "children": [
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "How to enable Spec Prioritization in Cypress Cloud"
                  }
                ]
              }
            ]
          },
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "How to save time by running failed specs first"
                  }
                ]
              }
            ]
          },
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "How to reduce CI costs by using Spec Prioritization with Auto Cancellation"
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "It is often helpful to be aware of test failures earlier within a CI test run\nso that debugging and iterations can resume and progress much faster. Being\nable to catch issues sooner within the CI process can save valuable time in\ntroubleshooting failures and deploying fixes."
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "For example, consider you have a test suite consisting of several spec files that take 30\nminutes to execute, but failures start to occur within one spec at the 20 minute\nmarker. A subsequent code change aimed at resolving the issue will have to be\nvalidated after running the CI build and waiting 20 minutes. This process and\nwaiting continues until the issue is fixed."
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "By running failed specs first, the issues can be surfaced earlier and reduce\nthat 20 minute wait to potentially a few minutes. Considering that a test\nsuite has multiple spec files, this orchestration strategy will always save\ntime."
          }
        ]
      },
      {
        "type": "heading",
        "depth": 3,
        "children": [
          {
            "type": "text",
            "value": "Activate Spec Prioritization in Cypress Cloud"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "Spec Prioritization is a Smart Orchestration feature available to users\nwith a\n"
          },
          {
            "type": "link",
            "title": null,
            "url": "https://cypress.io/pricing",
            "children": [
              {
                "type": "text",
                "value": "Business or Enterprise tier Cypress Cloud plan"
              }
            ]
          },
          {
            "type": "text",
            "value": ".\nWondering if upgrading your Team tier subscription is worth it? Check out the\n"
          },
          {
            "type": "link",
            "title": null,
            "url": "/llm/markdown/cloud/features/recorded-runs.md#Recommendations",
            "children": [
              {
                "type": "text",
                "value": "recommendations"
              }
            ]
          },
          {
            "type": "text",
            "value": " on the run\noverview page to see how much time we predict these features would save you."
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "Spec Prioritization is a Smart Orchestration feature that is managed within a\nproject's settings."
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "To enable or disable this feature at the Project level (must be an admin user):"
          }
        ]
      },
      {
        "type": "list",
        "ordered": true,
        "start": 1,
        "spread": false,
        "children": [
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "Select the desired project within Projects view to visit Cypress Cloud."
                  }
                ]
              }
            ]
          },
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "Click \"Project Settings\" with the right-hand sidebar."
                  }
                ]
              }
            ]
          },
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "Scroll to the Smart Orchestration section within Project Settings page."
                  }
                ]
              }
            ]
          },
          {
            "type": "listItem",
            "spread": false,
            "checked": null,
            "children": [
              {
                "type": "paragraph",
                "children": [
                  {
                    "type": "text",
                    "value": "Toggle \"Spec Prioritization\"."
                  }
                ]
              }
            ]
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "CI Tip: Reduce Costs"
          }
        ]
      },
      {
        "type": "paragraph",
        "children": [
          {
            "type": "text",
            "value": "Note that Spec Prioritization alone will not save time as it purely alters\nthe order in which specs are run. However, when used in tandem with\n"
          },
          {
            "type": "link",
            "title": null,
            "url": "/llm/markdown/cloud/features/smart-orchestration/run-cancellation.md",
            "children": [
              {
                "type": "text",
                "value": "Auto Cancellation"
              }
            ]
          },
          {
            "type": "text",
            "value": " it can\nresult in shorter test runs due to cancellation being triggered earlier, leading\nto significantly reduced CI costs."
          }
        ]
      }
    ]
  },
  "token_estimate": 481
}