Development Basics

What Is Regression Testing in Software QA?

What Is Regression Testing in Software QA?

A change can break code nobody touched. Regression testing exists to catch that. After a change, the team re-runs test cases that already passed and checks that the untouched functionality still works. Anything that fails is a regression: behavior that worked before the change and doesn’t after it.

Developers and QA engineers usually run these checks at merge time and again before a release, measuring each change against whatever shipped last.

ISO/IEC/IEEE 29119-1 treats any modification to a test item or to its operational environment as the trigger. So a runtime upgrade or a hosting move calls for a run, even if no line of code changed.

What is regression testing?

YouTube player

The ISTQB glossary frames it as change-related testing that looks for defects in “unchanged areas of the software.” ISO/IEC/IEEE 29119-1 words it around modifications to a test item or its operational environment, which is why any change can set it off and not only a code edit.

A typical regression is a fix to a login form that quietly breaks password reset. Nobody meant to touch password reset. That’s the point.

Most of the other types of software testing verify new behavior. Regression testing guards behavior that already shipped, and it can run at any level: unit, integration, system or acceptance.

In scope are tests that passed before, not new ones. Any modification to the item or its environment can trigger a run, and the outcome is either a clean pass or a regression to fix.

No fixed number of cases is enough for every change. ISO/IEC/IEEE 29119-1 ties the sufficiency of a regression set to the item under test and to the modification itself.

When should regression testing run?

After any change that could alter behavior that already works. That’s a wider net than code edits.

Bug fixes are the usual culprit, since a fix can disturb other code that shared the faulty path. New features bring new logic that touches shared data and shared screens. Refactors change structure while behavior is supposed to stay put. A library upgrade can change behavior your code quietly relied on. Flags, limits and other configuration settings alter runtime paths, and so does a new OS, runtime, database or hosting setup.

Refactoring is the cleanest example. Reworking code structure should leave behavior identical, and a regression run is the only proof that it did.

The ISTQB Foundation syllabus v4.0 backs up the ISO wording on the environment. An OS upgrade or a new database version counts as a trigger, even when no line of code changed.

Most teams tie runs to merges and to the stages of the release cycle, with the widest run just before release.

Changes limited to documentation or comments are the exception. Nothing executed has changed, so there’s nothing to rerun.

How is regression testing different from retesting, smoke testing and sanity testing?

Regression testing asks what else a change affected. Retesting, smoke testing and sanity testing all ask something narrower.

Retesting, also called confirmation testing, re-runs the test that failed to prove the fix worked. Regression testing starts after that, to check the fix broke nothing nearby.

A smoke test is the quick one. It runs over core paths such as login, home page and navigation, and its only job is to decide whether a build is stable enough for deeper testing.

Sanity testing comes after a small change and stays narrow. Does the fix work, and do its immediate neighbors still stand?

Two mix-ups come up a lot. Retest-all is a regression technique that runs every written test case, so it has nothing to do with retesting a failed one. And “regression is automated, smoke is manual” is common practice, not a rule.

Which types of regression testing exist, and when does each fit?

The types differ mostly in scope, and sources do not define every one the same way. This article works with six: unit, partial, selective, complete, progressive and corrective.

TypeWhat it re-runsBest-fit change
UnitUnit tests on the changed code, in isolationAny commit
Partial and selectiveTests for the modified feature and its dependencies, or a subset picked by impact or riskMerges, bug fixes, small features
Complete (retest-all)The entire suiteMajor releases, platform shifts
ProgressiveExisting cases plus new cases written for the new featureNew feature added
CorrectiveExisting cases, unchangedLittle or no code change

Unit regression costs the least. Unit tests are fast and isolated, so running them on every commit is cheap.

The definitions really do drift between sources.

  • IBM describes corrective regression as a run for when the codebase has not changed, while Virtuoso QA treats it as retest-all.
  • For complete regression, Momentic talks about exercising every line after a change and Inflectra talks about a risk-focused run.
  • TestGrid ties partial regression to new code added to an existing codebase. Inflectra ties it to modified features and their direct dependencies.

The table above is what this article means by each term. If another team says “full regression”, ask which definition they’re using before comparing scope.

Match scope to the size and risk of the change. Unit regression runs on every commit, partial or selective on every merge, and a complete run is saved for a release or a platform shift.

Running a complete regression on every change sounds like the safe default, but it stops working at scale. Google’s engineers reported in 2017 that, even with enormous resources, they cannot regression test each code change individually (Memon et al., ICSE-SEIP).

How do you choose which tests go into a regression run?

Start with what the change touches, then rank by what a failure would cost. Change impact narrows the pool, and risk, defect history and business criticality order what is left.

Selection techniques

Facebook’s numbers show what selection can buy. Its predictive test selection reports over 99.9% of faulty changes caught while running fewer than a third of the tests that build dependencies would select (Machalica et al., ICSE 2019). Every selection method is chasing that result.

Regression test selection (RTS) runs only the tests a change can affect, found through dependency tracking. Granularity matters. Shi, Zhao and Marinov (ISSRE 2019) note that module-level RTS pulls in more tests than class-level RTS, because it selects every test inside an affected module.

Dependency-based selection maps the diff to affected classes or modules and runs their tests. Microsoft’s Test Impact Analysis for Azure Pipelines (TFS 2017 Update 1 onward) does something similar inside the pipeline. It selects impacted tests, previously failing tests and newly added tests, and it can be forced to run everything on a schedule. Learned selection is the other route, a model trained on historical changes and test outcomes, as at Facebook.

Google’s data points to which signals predict failure. Very few tests ever fail, according to the 2017 paper. The ones that do tend to sit close to the code they test, and code recently modified by more than 3 developers breaks more often.

Google’s 2019 follow-up (Leong et al.) evaluated five selection algorithms. Recent pass and fail history did worse than expected, and the best performers counted how often a test was triggered and how many distinct authors touched the code behind it.

Taken together, proximity to the change and the number of people touching the code beat a test’s recent history as failure signals. The authors still call test selection largely unsolved.

Selection also misses failures. Shi and colleagues found that RTS can skip tests that would have failed, though those skipped failures were almost all flaky ones.

A periodic full run, the way Microsoft’s Test Impact Analysis allows, stays the safety net.

Prioritization criteria

Selection makes the run smaller, and prioritization sets the order inside it so the likeliest failures surface early.

Ranking starts with change impact and defect history. Business criticality, meaning things like login, checkout and payments, gets weighed on top.

Scoring each area on likelihood of failure and cost of failure works like a risk assessment matrix, and the cells with the worst combination run first. Areas below the cut line run less often, though a low score is not proof they are safe.

Rescore the order each release, because the riskiest area changes.

How do you run a regression test cycle?

A cycle starts with the change and ends with an updated suite.

  1. Read the diff, ticket or release note, and list the modules, data and settings it touches.
  2. Map each touched area to the features and integrations that depend on it.
  3. Choose a type from the table above, then sequence the cases by risk.
  4. Match versions, configuration and test data to the target, and start from a known data state.
  5. Run the automated suite, plus a manual checklist for anything not scripted.
  6. Sort each red result into a product regression, a test or data problem, or an expectation that is now obsolete.
  7. Record confirmed regressions in a tracker such as Jira with the change that caused them, fix, retest, then rerun the related checks.
  8. Add a case for every regression found and retire cases that no longer describe real behavior.

Teams skip triage more than any other step, which is how a flaky failure ends up treated as a regression, or a real regression gets written off as flaky.

Log each confirmed regression through a defect tracking workflow, linked to the change that caused it, so the next run checks it first.

Each cycle repeats the environment setup, execution and reporting phases of the software testing lifecycle for a single change.

Here’s an illustrative case. A shop changes how discount codes apply at checkout, which means edits to the discount logic in the pricing service. The impact reaches order totals, tax calculation, invoice emails and refunds, so the team runs a selective pass over those four areas plus the payment flow.

The invoice-email test fails because the email still shows the pre-discount total. Nobody touched the email code, so only a regression run would have caught it.

The team logs the defect, fixes the template data, retests the email, reruns the four areas, and adds a permanent case for the discount-plus-invoice path.

Manual or automated regression testing?

Automate the cases that are repetitive, stable and run on every change. Keep manual checks for exploratory work and for screens that still change every sprint.

Automation is attractive for obvious reasons. Suites run on every commit without anyone watching, they execute the same way each time, and results flow straight into gates and dashboards. Testers get freed up for exploratory work too.

The cost shows up early, though. Scripting takes time before the first run pays anything back, and scripts break when selectors, endpoints or layouts change even though the product is fine. Unstable tests then add noise that buries real failures.

Manual testing needs no setup, which suits a one-off change. A person also notices what no script asserts, like an awkward layout or a confusing flow.

Against that, it’s slow and repetitive. Coverage varies from tester to tester, and it can’t keep pace with per-commit runs.

Start with unit and API cases, which are fast, isolated and cheap to keep stable. Critical journeys such as login, checkout and payment come next, kept to a thin UI layer. Repeated data checks follow, meaning totals, exports and imports that someone verifies by eye today.

Do not automate everything. A case earns its script only after enough runs to cover the scripting and upkeep, so a screen that changes every sprint stays manual until it settles.

Which regression testing tools fit which layer, and where do they run in CI/CD?

YouTube player

Pick tools by layer. Unit frameworks sit at the base, API collections in the middle, and only a thin set of browser journeys goes on top, since speed and stability drop with each layer up.

Tools by test layer

YouTube player
LayerToolsWhere it fitsLimit
UnitJUnit (Java), pytest (Python), Jest (JavaScript)Fast, isolated checks on each commitBlind to integration and UI breaks
APIPostmanCollections run in CI with the Postman CLI or NewmanChecks responses, not what users see
Web UISelenium, Cypress, PlaywrightA thin set of critical journeysSlowest and least stable layer
MobileAppiumNative, hybrid and mobile web appsNeeds emulators or real devices
InfrastructureBrowserStackReal browsers and devices for UI suitesHosts the run, does not stabilize flaky scripts

Selenium drives browsers through the W3C WebDriver interface, with bindings for Java, Python, C#, Ruby and JavaScript (Selenium documentation).

Cypress runs tests inside the browser and covers Firefox and Chrome-family browsers, so multi-tab flows need workarounds.

Appium reuses the WebDriver model for native, hybrid and mobile web apps on simulators, emulators and real devices.

Flakiness grows with test size. Over one week, 0.5% of Google’s small tests were flaky, against 1.6% of medium tests and 14% of large ones (Google Testing Blog, 2017).

That gradient is why the test pyramid keeps the base wide and the top narrow. Martin Fowler’s note on the pyramid describes UI-driven tests as fragile and slow to run, and costly to write.

Placement in a CI/CD pipeline

YouTube player

In GitHub Actions, a workflow can trigger on push, pull_request, a cron schedule or manual dispatch. Scheduled runs use UTC and can be delayed under heavy load (as of October 2026).

GitLab CI/CD has scheduled pipelines that run on cron patterns independent of code changes, and they cannot run more often than the instance maximum. Jenkins runs the same suites from a pipeline definition kept in the repository.

Teams that practice continuous integration usually split the suite into a fast stage that gates each push and a slower scheduled stage that does not wait for a code change.

Wire that regression stage into the existing build pipeline, so a red result blocks the merge instead of landing in a report nobody opens.

A nightly run is the cheapest net for a slow suite.

Visual regression testing

The idea is simple. A screenshot of a page gets compared against an approved baseline, and any differences are flagged.

Playwright Test does it with toHaveScreenshot(). The first run writes reference screenshots, later runs retry the capture until two consecutive shots match, then compare against the baseline (as of Playwright 1.62, snapshots can also be stored as WebP).

Applitools Eyes drives the app through a driver such as Selenium or Appium, captures checkpoints and compares them with baseline images, labeling each step as match, mismatch, new or missing.

Percy, part of BrowserStack, compares each snapshot against the baseline, and approving a build promotes its snapshots to the new baseline.

It breaks in predictable places. Timestamps, ads and live counters change every run, so they must be masked or ignored. Baselines are tied to browser and platform, so generate them where the comparison runs. Approving a diff also redefines “correct”, which is why each change should be confirmed as intended first.

Where does regression testing break down?

Flaky tests report failures nobody can trust. Separately, the suite outgrows its time budget, and upkeep slowly eats the savings that automation promised.

How much of the failure noise comes from flakiness depends on who’s counting. About 84% of pass-to-fail transitions at Google involve a flaky test (Google Testing Blog, 2016). At Microsoft (Windows and Dynamics), an estimated 5% of all test failures are flaky (Herzig and Nagappan, as cited in Google’s ICSME 2020 paper). For TravisCI projects the figure is 13% of failed builds (Labuschagne et al., FSE 2017).

These don’t conflict so much as measure different things. Google counts pass-to-fail transitions, the moments a test flips. Microsoft’s number covers all test failures and the TravisCI number covers failed builds, across different suites and test sizes.

Flaky tests

When a test passes and fails on the same code, it’s flaky, and the damage is trust. Once failures look random, real regressions get dismissed along with the noise.

Async wait was the most common cause in Luo et al.’s analysis of 201 fixing commits in Apache projects (FSE 2014), at 45%.

After building a system to manage flaky tests, GitHub cut the share of commits with flaky builds to under half a percent (1 in 200), an 18x improvement (GitHub Engineering, 2020).

That system marks a test as flaky when a rerun against the same code passes. GitHub notes that time-based flakes escape this check.

Quarantine known flaky tests so they stop blocking merges, and rerun failures against the same code before calling them regressions. Every flaky test also needs an owner and a deadline. (The deadline is the part that gets skipped.)

Suite growth and run time

Every regression found adds a case, and few cases ever leave.

Nightly runs start spilling into the morning. Developers stop waiting for results, and releases slip to fit the run.

Splitting fast and slow stages helps, and so does running shards in parallel. Deleting cases whose feature no longer exists helps too.

Selection, covered earlier, only shrinks a single run. Pruning is what shrinks the suite itself.

Maintenance cost

Scripts age. A selector tied to page structure breaks when the markup moves, with no product defect behind it.

A suite nobody prunes becomes technical debt like any other code, and the bill arrives as slower runs and more false failures.

Budget upkeep per release, not once at scripting time. Selection, quarantine and scheduled pruning keep the cost of the suite below the cost of the regressions it catches.

Regression Testing FAQ

Is regression testing functional or non-functional?

Both. Regression testing describes why a test runs, not what it checks.

A rerun can cover functional behavior such as order totals, or non-functional behavior such as page load times.

Who performs regression testing, developers or QA engineers?

Usually both. Developers run the unit-level checks on each commit, while QA engineers tend to own the wider suites that run before a release.

Some teams also let users confirm fixes in a preproduction environment.

How does regression testing fit into agile sprints?

It runs inside every sprint, with a fast set on each merge and a wider run before the sprint’s release.

Each story adds cases to the suite, which is progressive regression in practice.

What is non-regression testing?

Just another team’s label for regression testing, not a separate method.

The term stresses the goal, no regression, while “regression testing” remains the name used in the ISTQB glossary and in testing standards.

Can AI tools generate or select regression tests?

Yes, in two ways. Learned selection models rank tests by past outcomes, and some AI testing tools generate or repair cases.

Both still need a person to review the results, because a generated case or an updated baseline can encode the wrong behavior.

Building a Regression Suite Without Slowing Releases

Start with the journeys whose failure costs the most, such as login, checkout and payment, and automate them at the unit and API layers first.

The order of what follows matters more than the volume. Cover revenue paths on every merge, then set a quarantine rule for flaky tests, and add selection once runs outgrow the merge window.

Quarantine comes before growth because trust in a red build is hard to rebuild once people learn to ignore it. Selection comes last because history-based signals, such as how often a test has been triggered, only exist after the suite has run for a while.

The trade-off is a thin early suite. Regressions outside the covered paths ship until coverage widens, and writing the starter scope into a software test plan keeps that boundary visible.

As of October 2026, this order changes in one case: a suite whose full run fits inside the merge window never needs selection at all.

Bogdan Sandu

Stay sharp. Ship better code.

Every week: one curated article, one tool worth knowing, one tip you can use tomorrow. No noise, no padding.