---
title: "7 Types of Regression Testing and When to Use Them"
description: "Regression tests check that a change did not break working code. The 7 types: corrective, unit, complete, partial, selective, progressive and visual."
canonical: "https://momentic.ai/blog/types-of-regression-testing"
last-updated: "2026-10-31T09:55:08Z"
---

# 7 Types of Regression Testing and When to Use Them

URL: https://momentic.ai/blog/types-of-regression-testing

[blog](/blog) [/ resources](/blog/category/resources)  / types-of-regression-testing

Resources

What you need to know about the seven main types of regression testing and when to use them - plus a few tips on optimizing your regression testing processes

Wei-Wei Wu

CEO, Momentic

Regression testing is a non-negotiable part of the [software testing life cycle](/blog/the-software-testing-life-cycle) for most organizations - but there's more than one way to do it.

Different types of regression testing allow you to focus your efforts in a way that best suits the task at hand. Are you testing after optimizing your code, fixing a few bugs, or implementing a brand new product feature?

Below, we explore seven different types of regression testing and when to usethem.

## What is Regression Testing and Why is it so Important?

Regression testing is the process of running both [functional and non functional tests](/blog/functional-vs-non-functional-software-testing)again after a code change, such as a bug fix, or feature update.

Is it the most exciting job in the software development cycle? Probably not, but it's absolutely crucial in ensuring that updates to your codebase do not create any unexpected issues in your product's performance.

Regular regression testing allows you to maintain a strong user experience that attracts and maintains a thriving user base. In the long term, this increases customer lifespan, reduces churn, and - particularly if you're a SaaS organization - keeps up a healthy MRR.

### When to Carry Out Regression Tests

Test whenever you update your codebase, for whatever reason. Code changes typically fall into three main categories. You should carry out regression testing after each of them, including:

- When you add new features or change the spec of your app
- When you identify defects in your product and debug your code to correct them
- When you optimize your codebase to improve performance

## What are the Different Types of Regression Testing, and When Should You Use Them?

| Type | What it re-tests | Use it when | Example trigger |
| --- | --- | --- | --- |
| Corrective | Existing tests, unchanged | The code changed but the requirements did not | A refactor with no behaviour change |
| Unit | One unit in isolation | A function or class changed | A pricing function is rewritten |
| Complete | The whole suite | A large or risky change lands | A framework upgrade or a release candidate |
| Partial | The changed module and what touches it | A small change in a known area | A bug fix in the cart |
| Selective | A chosen subset of tests | Time is short and the change is well understood | A pull request touching only search |
| Progressive | Updated and new tests | Requirements changed | A new checkout step is added |
| Visual | Screenshots against a baseline | CSS, layout or component library changes | A design system upgrade |

The regression testing process itself is fairly simple. Post code-change, you run the tests, fix any issues you find, retest, and release.

The big questions you'll have to answer are 'how much of our codebase do we need to retest?' - and the related 'which type of regression testing should we use?' There are no absolute right and wrong answers here - it all depends on the scope of your code change and what it affects.

Here's what you need to know about each type or regression test.

### Corrective Regression Testing

**What it is**
The most straightforward type of regression testing - use it if your code changes haven't modified any of your software's functionality. You'll use the same test cases with no modifications to ensure that your software works exactly as it did before.

**When to use it**
When you've been cleaning up your codebase - for example by eliminating redundant code - or refactoring your code for performance improvements that don't alter functionality.

**Example** A refactor that removes duplicate code but changes no behaviour: rerun the existing tests as they are.

**How to automate it** Rerun the existing unit and end-to-end suites in CI after the refactor; no new tests are needed.

### Unit Regression Testing

**What it is**
Unit regression testing focuses on individual units of code. This ensures that a unit works as expected after a code change to that particular unit only. This type of regression testing won't test the code's interaction with other components - just whether it works by itself.

**When to use it**
For small changes to niche areas of code that won't affect any other components.

**Example** A pricing function is rewritten for speed: rerun its unit tests and the tests of the functions that call it.

**How to automate it** Run the unit tests on every commit with your test runner (Jest, Vitest, pytest, JUnit).

### Complete Regression Testing

**What it is**
You test everything - and we mean _everything_. Complete regression testing involves testing every single line of code your product contains after a change to the codebase.

**When to use it**
Given the amount of time and resources it takes, you should save complete regression testing for substantial releases that could significantly impact functionality - for example a major user interface rework, or an update to central reporting tools.

**Example** A framework upgrade or a release candidate: run every test you have before it ships.

**How to automate it** Run the full end-to-end suite nightly and on release branches, sharded across machines. For mobile apps, see [regression testing for mobile apps](/blog/regression-testing-for-mobile-apps).

### Partial Regression Testing

**What it is**
Partial regression testing verifies that your code changes only affect the parts of your product you want to change, alongside their related components. It's a useful way of ensuring that smaller modifications don't have unexpected ripple effects throughout your app.

**When to use it**
Partial regression testing is perfect for smaller tweaks, bug fixes, or code patches. It's a useful middle ground between only testing the code you've rewritten and a broader, more time-consuming approach.

**Example** A bug fix in the cart: test the cart and the checkout and pricing code that reads from it.

**How to automate it** Tag tests by feature area and run the tags for the changed module and its neighbours.

### Selective Regression Testing

**What it is**
In contrast to partial regression testing, which focuses on the parts of your product you want to change, selective regression testing expands test coverage to all parts of the software that your changes are likely to affect.

If you've made a relatively minor feature tweak in one area, selective regression testing ensures that other affected areas run correctly after the code change.

**When to use it**
After a small-to-medium impact code change that may affect adjacent features -for example, a change in your payment gateway that has potential knock on effects on the rest of your payment processes.

**Example** A pull request that only touches search: run the search tests and the smoke suite, not the whole regression suite.

**How to automate it** Pick tests from the diff. In Momentic, `npx momentic ai select --base main` reads the diff and returns the tests that cover it.

### Progressive Regression Testing

**What it is**
In progressive regression testing, engineers gradually add new test cases to the test suite. This tests new features' behavior thoroughly, without compromising efficiency - and it also ensures that older test cases are updated or modified as needed.

**When to use it**
When you add new features to your product or change its spec, to make sure that existing test cases don't become outdated and miss defects as a result.

**Example** A new checkout step is added: update the checkout tests for the new step and add tests for its rules.

**How to automate it** Write the new and updated tests in the same pull request as the feature, so the suite changes with the spec.

### Visual Regression Testing

**What it is**
Visual regression testing allows teams to make sure their product's visual appearance hasn't been altered by code changes. It helps teams identify any discrepancies in the user interface and design elements of the app, for example positioning of key UI elements, and color and font changes.

**When to use it**
When code changes have the potential to affect your UI, particularly for flagship, customer-facing applications that are cornerstones of your brand.

**Example** A design system upgrade: compare every key page against its stored screenshot.

**How to automate it** Compare screenshots against a stored baseline and review differences in the pull request. See the [best visual regression testing tools](/blog/best-visual-regression-testing-tools).

## Which regression tests to run, and when

| When | What to run | Target time |
| --- | --- | --- |
| Every commit | Unit regression tests | Under 5 minutes |
| Every pull request | Smoke suite plus selective end-to-end tests for the changed code | Under 15 minutes |
| Nightly | Complete end-to-end suite and visual tests | Under an hour |
| Before a release | Complete suite on the release build, plus progressive tests for new features | As long as it takes |

Start every pull request with the [smoke suite](/blog/smoke-testing-in-software-development), and see the [best regression testing tools](/blog/best-regression-testing-tools) for runners that shard and select tests.

### Automated vs Manual Regression Testing: Which Should You Use?

If you're not automating the majority of your regression testing in 2025, you're missing out on serious efficiency improvements. [Automating tests is faster and more accurate](/blog/automated-vs-manual-testing)than manual regression testing in most cases.

The only real use for manual testing is for cases that require nuanced user perspectives, or when you need to carry out extensive exploratory testing. These aren't a common part of regression testing processes, so most of your regression testing can and should be automated.

## Where AI helps with regression testing

- **Choosing tests from the diff.** Running the complete suite on every pull request is slow; running nothing is risky. AI test selection reads the diff and picks the end-to-end tests that cover it. See the [AI test selection docs](/docs/ai/select).
- **Keeping tests passing through UI changes.** Tests that describe an element ("the Checkout button") instead of a selector keep working when the markup changes, so a redesign does not turn into a week of test fixes.
- **Triage.** When a regression test fails, the useful output is the failed step, a screenshot and a trace, not a stack trace alone.

## Momentic: Your New AI Regression Testing Tool?

> “Momentic makes it 3x faster for our team to write and maintain end to endtests.”

We'd love to see if [Momentic](/)'s AI testing tools could help you optimize your software testing life cycle.

If, like Alex and his team, you're keen to save over two thirds of the time you spend on key testing processes, why not schedule a conversation with our founder?

## Frequently asked questions

What are the main types of regression testing?    Seven are commonly named: corrective, unit, complete, partial, selective, progressive and visual.    What is the difference between selective and partial regression testing?    Selective runs a chosen subset of the existing suite. Partial tests the changed module and the code that interacts with it, and may add tests.    How often should you run regression tests?    Unit tests on every commit, a selective end-to-end set on every pull request, and the complete suite nightly or before each release.    Can regression testing be fully automated?    Mostly. Exploratory checks of new features still need a person or an exploratory agent, but the repeat runs should be automated.

Still have additional questions?

## Keep reading.

[Resources   QA Release Checklist: 12 Steps Before Every Release     A 12-step QA release checklist with an owner and a piece of evidence for each step, and a clear answer to who owns the checklist: engineering or QA.     Wei-Wei Wu     13 min read](/blog/qa-release-checklist)[Resources   CI/CD Automation Testing: Essential Strategies for Faster Deployments     Learn CI/CD automation testing strategies to speed deployments, reduce flaky tests, and improve software quality with automated testing.     Wei-Wei Wu     12 min read](/blog/ci-cd-automation-testing)[Resources   Smoke Testing: What It Is and When to Run It     What smoke testing is, where it sits in the release cycle, how it compares with other test types, and the practices that keep a smoke run short.     Wei-Wei Wu     10 min read](/blog/smoke-testing-in-software-development)

## Try Mo on your app.

Mo is an AI QA engineer. It tests your running app and files each bug with repro steps. Free to start, no credit card.

[Try for free](https://app.momentic.ai/signup) [Contact sales](/sales)
