QA Interview Hub · Knowledge base · Quizzes · Українська

QA Fundamentals › Types of testing

Regression vs retest and the scope of regression

The regression scope is chosen by the change's impact and by risk, not by running everything, and what is skipped is recorded with the reason. First find out what changed (the diff, a talk with the developer) and what depends on it. Priority goes to changed areas, then critical flows (login, payment) and places with a bug history. A retest confirms a fixed bug, while regression looks for breakage elsewhere.

QA Fundamentals · Types of testing

The release is tomorrow and regression takes two days. What exactly do you run and what can you leave?

The regression suite grows with every release, and the time before shipping shrinks. Running everything is impossible, and "run what we manage" means chance: lucky today, not tomorrow. This lesson is about choosing the regression scope deliberately, by area of change and risk, and recording what was skipped. A short note on the difference between a retest and regression: a retest confirms a specific fixed bug, regression looks for what the change broke elsewhere (more in the lesson on the retest).

How it works and why. A regression scope is an answer to two questions: what could the change have touched (impact) and what does it cost if this is broken (risk). So the process has steps: understand what changed (git diff, release notes, a talk with the developer), assess impact (which modules, data, configs, external calls depend on what changed), assess risk (probability of error: new or complex logic, frequency of changes, bug history; consequence: money, data, number of users), pick checks by priority, and write down what is skipped together with the reason.

In which order to pick checks

1. Changed areas2. Neighbouring modules3. Critical flows4. Past bug hot spots5. The rest: automation
Figure 1. Take from top to bottom until time runs out. The stable checks of the rest are covered by automation.

The order is not random: risk is highest closest to the changes, because code was altered there, next come dependencies, then what is most expensive to break (login, payment, checkout), and finally areas where bugs occurred before (they tend to recur).

Example: from "everything" to a justified selection. The release contains new card limit logic and an updated date library, with one day for testing.

An approach to regression

Typical

"I will run what I manage"

The suite is taken from the top of the list. Depending on order, the profile gets checked and the transfer does not. Nobody knows what was skipped.

Better

Scope by impact and risk

There is a record of what changed and why these checks were chosen. The skipped part is named, and the risk is agreed with those who answer for it.

Figure 2. The difference is not the number of checks but that the choice can be explained and repeated.

For this release the scope record looks like this:

Change: card limits (PR 412), date library update
Impact: transfer, top-up, limit settings, statement (dates)
High risk: a transfer over the limit, a payment at the day boundary
Take: 12 manual cases + payment automation
Skip: profile, help (unchanged, not touched)
Risk accepted: PM informed

What matters here: the date library update looked neutral but it affects everything that works with dates (the statement, the day boundary for limits), so it went into the impact assessment. And profile and help are skipped deliberately, with a record and a message to the PM, not silently. This is the answer to "how do you decide what to test when time is short".

For selection it helps to rate each area with two numbers, for example from 1 to 3:

AreaProbabilityConsequenceDecision
A transfer over the limit3 (new logic)3 (money)A manual case + an automated test
Statement (dates)2 (library)2A case at the day boundary
User profile11Skip, record

Limits and alternatives. Impact analysis can miss hidden dependencies: shared libraries, configs, database triggers, feature flags. So a talk with the developer matters more than a diff alone, and a test-to-module map or code coverage helps find which tests touch the changed code. Risk-based selection is a decision under uncertainty: it can be wrong, so the skipped part is recorded and after the release you look at whether defects slipped through. An automated regression suite is better run in full on every build, while manual time is kept for new and risky areas. The suite also needs cleaning: obsolete and duplicate tests make regression heavier without benefit.

Common mistakes.

  • Choosing the scope "by eye", without a talk with the developer and without the diff.
  • Checking only the changed area and forgetting dependencies and critical flows.
  • Silently skipping part and not telling anyone about the accepted risk.
  • Repeating stable, automated checks by hand instead of new risky ones.
  • Never cleaning the suite: regression grows until nobody can finish it.
  • Treating a config or dependency change as "not code": they need regression too.

Check yourself

A hotfix changes one function that rounds amounts, and there are two hours for testing. What is the scope?

Answer

I find who calls the function (with the developer or by searching the code): order totals, fees, refunds, the statement. I take the retest of the bug, boundary amounts (cents, large numbers) and an end-to-end payment check. I do not touch unrelated areas such as the profile. I record what is skipped.

A colleague says: "regression scope is just the files from the diff". Why is that not enough?

Answer

A diff does not show indirect dependencies: shared libraries, configs, data, triggers, feature flags, so a change in one file affects other modules. A talk with the developer and a dependency or coverage map are needed, and critical flows are taken regardless of the diff.

In the interview. Junior: Regression checks that changes did not break existing behaviour. A retest confirms a specific fixed bug. When time is short I take the changed areas, neighbouring modules and critical flows. Middle/Senior: I define the scope by impact and risk: a talk with the developer, git diff, an estimate of probability and consequence for each area, priority from the changed areas to critical flows and past bug hot spots. I cover the stable part with automation, record what is skipped with the reason and agree the risk with the PM.

More articles in this chapter