How does a retest differ from regression testing?
A retest (confirmation testing) repeats the failed test to check the bug is fixed, while regression checks that the change did not break anything else. The retest comes first, including variations of the same defect class because the fix may be partial, then regression in the area the change could have touched. A change of any kind, including configuration, triggers regression.
QA Fundamentals · Types of testing
The developer closed the bug. You ran the steps from the report. What else needed checking?
The bug: a 10% discount is not applied to an order with two items. The developer fixed it. The tester repeats the steps from the report, sees the discount and closes the ticket. A week later a new bug arrives: a refund of such an order returns the full amount to the customer instead of the amount paid. The fix worked but touched a neighbouring place. The lesson is about two different checks after any change: the retest and regression.
How it works and why. After a change there are two risks. The first: the fix does not fix (or fixes partially). The second: the fix breaks something nearby. ISTQB (CTFL 4.0, section 2.2.3) treats them together as testing after changes and separates two actions. Confirmation testing (retest): repeat the test that failed and make sure it now passes, usually with the same steps and, when needed, with variations. Regression testing: check that the change did not affect anything else, in the area it could touch.
What a retest checks and what regression checks
Different triggers, goals and results make them separate actions.
Retest and regression
Retest
Trigger: a fixed defect.
Goal: confirm the bug is gone.
Scope: the steps from the report and close variations.
Result: "fixed" or "not".
Regression
Trigger: any change (fix, feature, config, dependency, environment).
Goal: find newly broken old behaviour.
Scope: by risk and impact.
Result: new bugs.
When to use which. If there is a fixed defect from a ticket, start with the retest. If code, configuration or a dependency changed and there is no fixed defect (a new feature, a library update), the retest has nothing to confirm: new tests check the new behaviour and regression checks the rest. In practice the retest is also called confirmation testing, which is the term ISTQB uses; in everyday speech "retest" sometimes means any repeated run, so in an interview it is worth stating that you mean confirming a fix.
The usual order: the retest first (it is cheap, and if the fix does not work, regression is not needed yet), then regression on a build where the fix is already confirmed.
Example: from "the steps passed" to a full confirmation. The bug: promo code SAVE10 does not reduce the total of an order with two items. The fix corrects the discount loop. What to check?
| Check | Kind | Why |
|---|---|---|
| The same steps: 2 items, SAVE10 | Retest | This is the test that failed |
| 1 item, 3 items, 2 items from different categories | Retest (variations) | The cause was in the loop: a partial fix shows on neighbouring quantities |
| The free-delivery threshold after the discount | Regression | The discount changes the sum that delivery depends on |
| A refund of a discounted order | Regression | The refund amount comes from the calculated total |
| The total in the confirmation email, no double discount with a promotion | Regression | Other consumers of the calculated discount |
The selection principle for regression is visible: the question is "what else reads or depends on what changed?", not "let's run everything". The developer helps: what exactly was changed and which modules call this function.
Limits and alternatives. Retesting an intermittent bug needs several runs: one green run of an unstable defect proves nothing. Rerunning an automated test that failed because of an unstable environment is not confirmation testing: there is no fixed defect being confirmed. Regression is not limited to fixes: a new feature, a library update or a config change also need it. The stable bulk of regression is worth automating, while only the risky new areas are run by hand.
Common mistakes.
- Closing the ticket after one pass of the steps: the fix may work only for the exact data of the report.
- Skipping regression "because the fix is small": the smallest changes in shared code break distant places.
- Checking on a different build or environment than the one the fix reached: a check without a version proves nothing.
- Reopening a bug when the fix works but a new defect appeared: that is a separate bug linked to the first.
- Treating regression as "repeat everything": without a chosen scope it is either endless or empty.
Check yourself
The bug "an address with an apostrophe is not saved" is fixed. Besides the steps from the report, what else belongs in the retest?
Answer
Variations of the same defect class: other special characters (quotes, ampersand, angle brackets, emoji), long values, editing an already saved address. The cause could be fixed partially, and variations are what reveal it.
A hotfix changes only a timeout value in a config. Is regression needed?
Answer
Yes, in a narrower scope. Regression is triggered by a change of any kind, not only by code edits. I define the scope by impact: which flows depend on this timeout (payment, a request to an external service) and what happens when it is exceeded.