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

# Regression Testing

> Run a test plan from CI after a deploy, on a schedule, or by hand.

Regression testing starts with a [test plan](https://docs.qa.tech/core-concepts/test-plans.md): the tests you chose, against the environment on that plan. You decide which tests run. A [change review](https://docs.qa.tech/pr-testing/overview.md) is the other workflow. It picks and creates tests for one pull request, and it does not use the test plan as its source.

## 1. Create a test plan

Create the plan before you connect CI. CI only starts it.

> [card] [Create a test plan](https://docs.qa.tech/core-concepts/test-plans.md)
>
> Choose the tests and the environment.

## 2. Choose how to run it

> [card] [Manual](https://docs.qa.tech/best-practices/running-tests.md#trigger-a-run-from-the-ui)
>
> Open the test plan and select Run Tests, or use `qatech run`.

> [card] [Scheduled](https://docs.qa.tech/best-practices/running-tests.md#trigger-a-run-on-a-schedule)
>
> Open the test plan, select Manage Schedules, and add a cron expression.

> [card] [CI or API](#pick-your-ci)
>
> Start the plan from a pipeline or from `POST /v1/run`.

From the app, open the test plan and select **Run Tests**. [Manual and scheduled runs](https://docs.qa.tech/best-practices/running-tests.md#trigger-a-run-from-the-ui) covers a single test and its dependencies. From a terminal, run [`qatech run`](https://docs.qa.tech/cli/commands/run). From another system, call the [Start Run API](https://docs.qa.tech/api-reference/runs/start-test-run.md).

## Pick your CI

Each guide is only the regression setup. The same CI names under [PR Testing](https://docs.qa.tech/pr-testing/overview.md) review a pull request instead.

> [card] [GitHub](https://docs.qa.tech/regression-testing/github.md)
>
> Test Run Action, with blocking.

> [card] [GitLab](https://docs.qa.tech/regression-testing/gitlab.md)
>
> GitLab CI calls the Start Run API.

> [card] [Bitrise](https://docs.qa.tech/regression-testing/bitrise.md)
>
> Mobile build upload, or a web plan.

> [card] [fastlane](https://docs.qa.tech/regression-testing/fastlane.md)
>
> A lane uploads each new build and runs the plan.

> [card] [Envoyer](https://docs.qa.tech/regression-testing/envoyer.md)
>
> A deploy hook starts the plan.

> [card] [API](https://docs.qa.tech/regression-testing/api.md)
>
> Bitbucket, Jenkins, CircleCI, or any HTTP client.

## After the run

Every time a test plan runs, a review agent investigates each test that did not pass, reruns suspected flakes, and writes one verdict with the failures, flaky tests, setup problems and tests to update. Notifications and CI wait for that review, except when you start the plan with `/regression` in chat. See [Regression review agent](https://docs.qa.tech/regression-testing/regression-review-agent.md).

## How the suite grows

After a GitHub pull request merges, the [post-merge agent](https://docs.qa.tech/pr-testing/github#post-merge-agent) can promote tests that the review created. Promotion activates the test and labels it `regression` and `auto-added`. The agent only changes tests when its prompt asks it to.

New GitHub integrations default the agent on. Existing integrations leave it off until you enable **Run post-merge agent** under **Settings → Integrations → GitHub App**.

## While the suite runs

Parallelism, dependency order, and reused browser state:

* [Test dependencies](https://docs.qa.tech/core-concepts/dependencies.md)
* [Parallel tests](https://docs.qa.tech/core-concepts/parallel-test-execution.md)
* [Dependency output states](https://docs.qa.tech/core-concepts/output-state-optimization.md)
* [Session state lifetime](https://docs.qa.tech/core-concepts/session-state-lifetime.md)
* [Agent cache](https://docs.qa.tech/core-concepts/agent-cache.md)

When the tests finish, start with the [regression review](https://docs.qa.tech/regression-testing/regression-review-agent.md) on the **Analysis** tab, then [How to review test results](https://docs.qa.tech/best-practices/test-results.md), [Issues](https://docs.qa.tech/core-concepts/issues.md), and [Notifications](https://docs.qa.tech/core-concepts/notifications.md).


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