{
  "doc": {
    "id": "cloud/guides/quarantine-problematic-specs",
    "title": "Quarantine problematic specs with Run Checks",
    "description": "Use Cypress Cloud Run Checks to gate CI on the specs that still matter while known failing or flaky specs stay in the suite, without treating quarantine as a built-in Cloud feature.",
    "section": "cloud",
    "source_path": "/llm/markdown/cloud/guides/quarantine-problematic-specs.md",
    "version": "5a232a3cf094b8f928b1179ce5af6a5046296fac",
    "updated_at": "2026-11-13T01:14:31.437Z",
    "headings": [
      {
        "id": "cloud/guides/quarantine-problematic-specs#quarantine-problematic-specs-with-run-checks",
        "text": "Quarantine problematic specs with Run Checks",
        "level": 1
      },
      {
        "id": "cloud/guides/quarantine-problematic-specs#run-checks-quarantine-limits",
        "text": "Run Checks quarantine limits",
        "level": 2
      },
      {
        "id": "cloud/guides/quarantine-problematic-specs#exclude-parked-specs-from-a-run-checks-gate",
        "text": "Exclude parked specs from a Run Checks gate",
        "level": 2
      },
      {
        "id": "cloud/guides/quarantine-problematic-specs#scope-a-run-checks-flake-gate-to-critical-specs",
        "text": "Scope a Run Checks flake gate to critical specs",
        "level": 2
      },
      {
        "id": "cloud/guides/quarantine-problematic-specs#gate-ci-on-run-checks-not-only-on-the-run",
        "text": "Gate CI on Run Checks, not only on the run",
        "level": 2
      },
      {
        "id": "cloud/guides/quarantine-problematic-specs#treat-parked-run-checks-specs-as-temporary",
        "text": "Treat parked Run Checks specs as temporary",
        "level": 2
      },
      {
        "id": "cloud/guides/quarantine-problematic-specs#see-also",
        "text": "See also",
        "level": 2
      }
    ]
  },
  "chunks": [
    {
      "id": "cloud/guides/quarantine-problematic-specs#run-checks-quarantine-limits",
      "doc_id": "cloud/guides/quarantine-problematic-specs",
      "heading": "Run Checks quarantine limits",
      "heading_level": 2,
      "content_markdown": "## Run Checks quarantine limits\n\nWith this approach:\n\n*   Specs you park or quarantine still run and still appear in the Cypress Cloud run, including failures and flakes.\n*   The run itself can still show as failed when those specs fail. Run Checks never rewrite the run's test pass/fail.\n*   A `run.failedTests.max` or `run.flakyTests.max` assertion can ignore those specs through `include` / `exclude`, so the check can pass while the parked specs keep failing.\n\nThat separation is the point of the pattern. The check answers \"are the specs we care about still within policy?\" The run history still shows the parked specs so you don't lose track of them.\n\nIf you need Cypress to skip quarantined tests at runtime, that belongs in your test code or CI (for example, filtering which specs `cypress run` executes). Run Checks only evaluate results after the run records.\n",
      "section": "cloud",
      "anchors": [
        "run-checks-quarantine-limits"
      ],
      "path": "/llm/json/chunked/cloud/guides/quarantine-problematic-specs.json",
      "token_estimate": 192
    },
    {
      "id": "cloud/guides/quarantine-problematic-specs#exclude-parked-specs-from-a-run-checks-gate",
      "doc_id": "cloud/guides/quarantine-problematic-specs",
      "heading": "Exclude parked specs from a Run Checks gate",
      "heading_level": 2,
      "content_markdown": "## Exclude parked specs from a Run Checks gate\n\nMove problematic specs under a path your team recognizes, such as `cypress/e2e/_parked/`, and keep them in the recorded run. Then define a check that fails only when non-parked specs fail:\n\nApp Quality Config\n\n```\n{\n  \"checks\": [\n    {\n      \"name\": \"No new failures (parked specs excluded)\",\n      \"comment\": \"Gate CI on the active suite; parked specs still run and remain visible\",\n      \"assertions\": [\n        {\n          \"type\": \"run.failedTests.max\",\n          \"value\": 0,\n          \"exclude\": { \"specs\": [\"e2e/_parked/\"] },\n          \"comment\": \"Ignore failures under the parked path\"\n        }\n      ]\n    }\n  ]\n}\n```\n\nIn the runs list, that check shows the custom `name` and summarizes the exclude rule as a spec scope such as \"All specs excluding e2e/\\_parked/\". The threshold pill is the assertion `value` (`max 0`). Product labels like Test Results and metric labels like Failed tests come from the assertion type, not from free text you enter.\n",
      "section": "cloud",
      "anchors": [
        "exclude-parked-specs-from-a-run-checks-gate"
      ],
      "path": "/llm/json/chunked/cloud/guides/quarantine-problematic-specs.json",
      "token_estimate": 199
    },
    {
      "id": "cloud/guides/quarantine-problematic-specs#scope-a-run-checks-flake-gate-to-critical-specs",
      "doc_id": "cloud/guides/quarantine-problematic-specs",
      "heading": "Scope a Run Checks flake gate to critical specs",
      "heading_level": 2,
      "content_markdown": "## Scope a Run Checks flake gate to critical specs\n\nThe same idea works in reverse with `include`: hold a critical path to a flake budget while the rest of the suite stays unconstrained by that check.\n\nApp Quality Config\n\n```\n{\n  \"checks\": [\n    {\n      \"name\": \"Checkout stays flake-free\",\n      \"assertions\": [\n        {\n          \"type\": \"run.flakyTests.max\",\n          \"value\": 0,\n          \"include\": { \"specs\": [\"e2e/checkout/\"] }\n        }\n      ]\n    }\n  ]\n}\n```\n\n`run.flakyTests.max` requires [Flaky Test Management](/llm/markdown/cloud/features/flaky-test-management.md). Without it, the assertion is [unavailable](/llm/markdown/cloud/features/checks.md#Assertion-statuses) and the check becomes `errored` rather than `passed`.\n",
      "section": "cloud",
      "anchors": [
        "scope-a-run-checks-flake-gate-to-critical-specs"
      ],
      "path": "/llm/json/chunked/cloud/guides/quarantine-problematic-specs.json",
      "token_estimate": 115
    },
    {
      "id": "cloud/guides/quarantine-problematic-specs#gate-ci-on-run-checks-not-only-on-the-run",
      "doc_id": "cloud/guides/quarantine-problematic-specs",
      "heading": "Gate CI on Run Checks, not only on the run",
      "heading_level": 2,
      "content_markdown": "## Gate CI on Run Checks, not only on the run\n\nBecause parked failures can still fail the Cypress run step, wire CI to the check results when this pattern is your merge policy:\n\n1.  Record the run as usual (`cypress run --record`).\n2.  Allow the Cypress step to continue when tests fail if you still need check evaluation afterward (`continue-on-error` or the equivalent in your CI).\n3.  Fetch results with `getCheckResults()` and fail the job when an applicable check fails.\n\nSee [Using check results in CI](/llm/markdown/cloud/features/checks.md#Using-check-results-in-CI) and [Report Run Checks as GitHub pull request statuses](/llm/markdown/cloud/guides/report-run-checks-github.md) for the fetch-and-report flow. Required GitHub status checks should target the statuses you post from `getCheckResults()`, not only the default Cypress test statuses, when the check is what you intend to enforce.\n",
      "section": "cloud",
      "anchors": [
        "gate-ci-on-run-checks-not-only-on-the-run"
      ],
      "path": "/llm/json/chunked/cloud/guides/quarantine-problematic-specs.json",
      "token_estimate": 171
    },
    {
      "id": "cloud/guides/quarantine-problematic-specs#treat-parked-run-checks-specs-as-temporary",
      "doc_id": "cloud/guides/quarantine-problematic-specs",
      "heading": "Treat parked Run Checks specs as temporary",
      "heading_level": 2,
      "content_markdown": "## Treat parked Run Checks specs as temporary\n\nParked specs that never leave the exclude list become a silent backlog. Use the check `name` and `comment` fields to say why the exception exists, review the parked path on a schedule, and remove specs from it as you fix them. Narrow `exclude` / `include` patterns so a typo doesn't drop half the suite from the gate.\n",
      "section": "cloud",
      "anchors": [
        "treat-parked-run-checks-specs-as-temporary"
      ],
      "path": "/llm/json/chunked/cloud/guides/quarantine-problematic-specs.json",
      "token_estimate": 87
    },
    {
      "id": "cloud/guides/quarantine-problematic-specs#see-also",
      "doc_id": "cloud/guides/quarantine-problematic-specs",
      "heading": "See also",
      "heading_level": 2,
      "content_markdown": "## See also\n\n*   [Run Checks](/llm/markdown/cloud/features/checks.md) - assertion types, statuses, and `include` / `exclude` syntax\n*   [Report Run Checks as GitHub pull request statuses](/llm/markdown/cloud/guides/report-run-checks-github.md)\n*   [Flaky Test Management](/llm/markdown/cloud/features/flaky-test-management.md)\n*   [Cypress Cloud FAQ: Run Checks](/llm/markdown/cloud/faq.md#Run-Checks)\n",
      "section": "cloud",
      "anchors": [
        "see-also"
      ],
      "path": "/llm/json/chunked/cloud/guides/quarantine-problematic-specs.json",
      "token_estimate": 45
    }
  ]
}