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

# Re-run failed tests

> Replay a previous Qodex run or isolate recently failed scenarios to confirm fixes and flakes. See rerun scope, behavior, and result handling.

# Re-run failed tests

Re-running helps you confirm whether a failure is fixed, flaky, stale, or tied to a temporary environment issue.

There are two useful patterns: rerun the original plan from a previous test run, or start a new run scoped to scenarios whose last run failed.

![Qodex build history panel showing a failed run and run details](https://mintcdn.com/qodexai/rhkO1RmGEPTQ07wr/images/docs/run-tests/build-results.png?fit=max\&auto=format\&n=rhkO1RmGEPTQ07wr\&q=85\&s=2e8a349abcb8280aa7faf2dd834b36f3)

## Rerun the original plan

Open a test run and click **Rerun**. Qodex creates a new run using the original plan and environment.

The new run keeps:

* The same planned scenarios.
* The same environment.
* The same grouping behavior.
* The same CSV snapshot when the original run used one.
* A new title prefixed with `Rerun:`.

This is best when you want to reproduce the whole run exactly.

## Run only scenarios that failed recently

If you want to focus only on current failures, open **Test > Scenarios**, set the **Last run** filter to **Fail**, then click **Run all**. The run goes to the environment selected at the top of the page.

This creates a new scoped run from the filtered scenario list. It is useful after a fix, when you do not want to run the entire suite again.

## Compare artifacts

Open the original run and rerun side by side. Compare:

* Step screenshots.
* API request and response evidence.
* UI DOM, console, and network artifacts.
* Failure labels.
* Findings created or verified by each run.

If a failure reads **Test needs repair**, use **Fix in chat** to update the scenario, then rerun. If it reads **Environment**, rerun after the target is healthy. If it reads **Functional regression**, **Vulnerability present**, or **Still present**, use the finding evidence to fix the product behavior. To ask what a result returned without rerunning anything, use **Ask in chat**.

## Related

> [card] [Run a single scenario](https://qodex.ai/docs/run-tests-single-scenario.md)
>
> Reproduce one failed scenario in isolation.

> [card] [Run tag-filtered scenarios](https://qodex.ai/docs/run-tests-tag-filtered.md)
>
> Rerun a known subset such as regression or critical.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.