> ## Documentation Index
> Fetch the complete documentation index at: https://docs.spurtest.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Running Test Plans

> Run test plans across environments and browsers with saved configurations, alert notifications, and auto retry.

## Overview

Test Plans are the recommended way to run tests at scale. Unlike [manual runs](/running-tests/run-modal/run-modal), which require you to select environments, browsers, and scenarios each time, a Test Plan saves those selections so every run uses the same settings automatically. This makes Test Plans ideal for scheduled runs, CI/CD pipelines, and any workflow where consistency matters.

<Note>
  Test plans already contain run configurations. Running them does not require manual setup.
</Note>

## Test Plans vs Manual Runs

<Columns cols={2}>
  <Card title="Manual Runs" icon="circle-play" href="/running-tests/run-modal/run-modal">
    Each run requires you to manually select environments, browsers, viewports, and scenarios before starting.
  </Card>

  <Card title="Test Plans" icon="list-check" href="/managing-tests/test-plans/test-plans">
    Saves the full run configuration so every future run uses the same settings without manual setup.
  </Card>
</Columns>

Use manual runs for one-off runs and debugging. Use Test Plans for recurring, automated, or team-wide testing workflows.

## How to Run a Test Plan

<Steps>
  <Step title="Navigate to Test Plans">
    Open your Spur dashboard and click **Test Plans** in the left navigation.

    <Frame caption="Navigate to Test Plans from the left navigation">
      <img src="https://mintcdn.com/spur/CC1iO6uCHbpoVkFF/images/RunningTestPlans/step1-running.gif?s=0c9905d62a4edde55855a80a63faa09a" alt="Navigate to Test Plans" width="1960" height="1080" data-path="images/RunningTestPlans/step1-running.gif" />
    </Frame>
  </Step>

  <Step title="Run a Test Plan">
    Find the Test Plan you want to run and click **Run Plan** to trigger an immediate run using the saved configuration.

    <Frame caption="Click Run Plan to start an immediate run">
      <img src="https://mintcdn.com/spur/CC1iO6uCHbpoVkFF/images/RunningTestPlans/step2-running.gif?s=1f93f60f256aec6ad6bcd15a19a9e8b0" alt="Run a Test Plan" width="2236" height="1080" data-path="images/RunningTestPlans/step2-running.gif" />
    </Frame>
  </Step>

  <Step title="View Results">
    Results appear in the Test Plan's run history as they complete, with a breakdown by suite, environment, and test. Use the [Test Plan Review](/analysing-tests/test-plan-review) flow to triage failures and warnings systematically.
  </Step>
</Steps>

<Note>
  Test Plans can also be triggered automatically via the [Scheduler](/running-tests/scheduler) or your [CI/CD pipeline](/running-tests/CICD) without any manual action.
</Note>

## Alert Notifications

Keep your team informed without manually checking the dashboard. Connect your [Slack workspace](/analysing-tests/integrations/slack) and choose when to be notified.

* **On finish** — notify when the run completes regardless of outcome
* **On fail** — notify only when one or more tests fail
* **On every run** — notify for every individual test run
* **Final fail** — notify only after all retry attempts have been exhausted and the test is marked as failed

<Frame caption="Alert notification configuration in Additional Settings">
  <img src="https://mintcdn.com/spur/CC1iO6uCHbpoVkFF/images/RunningTestPlans/alert-and-notif.png?fit=max&auto=format&n=CC1iO6uCHbpoVkFF&q=85&s=74ba98982bc685ca09dd06b90b021a9f" alt="Alert and notification settings" width="942" height="696" data-path="images/RunningTestPlans/alert-and-notif.png" />
</Frame>

To enable this on an existing Test Plan, [edit your Test Plan](#editing-a-test-plan) and go to the **Additional Settings** tab.

## Auto Retry

Auto Retry helps you distinguish genuine bugs from flaky test results. When enabled, Spur automatically re-runs any failed test up to a set number of attempts before marking it as failed. Retries continue until the test passes or the maximum is reached.

* Choose from 1, 2, or 3 retry attempts
* Maximum is **3 retry attempts** (auto retry is off by default)

<Frame caption="Auto Retry configuration in Additional Settings">
  <img src="https://mintcdn.com/spur/CC1iO6uCHbpoVkFF/images/RunningTestPlans/auto-retry.png?fit=max&auto=format&n=CC1iO6uCHbpoVkFF&q=85&s=59ab19deb9ae8f42a84e59dc702c9486" alt="Auto Retry settings" width="542" height="298" data-path="images/RunningTestPlans/auto-retry.png" />
</Frame>

<Tip>
  If a test fails once out of three attempts, it is more likely an environmental blip than a real bug. Auto Retry surfaces only the consistent failures worth investigating.
</Tip>

### Retries with Dependencies

If a test that has [dependencies](/authoring-tests/dependencies) fails, Spur re-runs the entire dependency chain, not just the failed test. This ensures the retry starts from a clean state.

For example, if your tests are chained as **Test A > Test B > Test C** and Test B fails:

* Spur re-runs **Test A > Test B**, then continues to **Test C**
* Test A may appear with a retry badge in the results even though it originally passed, because it was re-run as part of the dependency chain
* In some cases, a test that originally passed can fail on the retry

<Note>
  This means you may see retry badges on tests that were not the original point of failure. This is expected behavior when retrying tests with dependencies.
</Note>

To enable this on an existing Test Plan, [edit your Test Plan](#editing-a-test-plan) and go to the **Additional Settings** tab.

## Editing a Test Plan

<Steps>
  <Step title="Open the Test Plan menu">
    Navigate to **Test Plans**, find the plan you want to edit, click the **three-dot menu**, and select **Edit Test Plan**.

    <Frame caption="Click the three-dot menu and select Edit Test Plan">
      <img src="https://mintcdn.com/spur/CC1iO6uCHbpoVkFF/images/RunningTestPlans/step1-editing.gif?s=b69936aa61058fba08bf47fe7bfb80c5" alt="Open edit menu" width="2104" height="1080" data-path="images/RunningTestPlans/step1-editing.gif" />
    </Frame>
  </Step>

  <Step title="Go to Additional Settings">
    Inside the Test Plan modal, navigate to the **Additional Settings** tab to configure alert notifications and auto retry.

    <Frame caption="Additional Settings tab in the Test Plan modal">
      <img src="https://mintcdn.com/spur/CC1iO6uCHbpoVkFF/images/RunningTestPlans/step2-editing.gif?s=ed75852e6d68ef6cfd7dd264ac1fbe57" alt="Additional Settings" width="1960" height="1080" data-path="images/RunningTestPlans/step2-editing.gif" />
    </Frame>
  </Step>
</Steps>

<Card icon="plus" title="Create a Test Plan" href="/documentation/managing-tests/test-plans/create-test-plan">
  Alert notifications and auto retry can also be configured when creating a new Test Plan.
</Card>
