QA GLOSSARY · TERM 1 OF 6

Regression testing

Regression testing means re-running checks on something that already worked, after every change, to catch what the change broke. A regression is a feature that used to work and stopped. A regression test is a check written so that it would fail the moment that happens again.

Updated 4 December 2026

In plain words

Software breaks in two ways. New code can be wrong, and new code can damage old code that was fine. The second kind is easy to miss, because nobody is looking at the old feature while they work on the new one. A regression test is how the old feature gets looked at, every time, without anybody having to remember.

The useful habit is to start from a real failure. When a bug is found, write the check that would have caught it, watch it fail, fix the bug, and keep the check. From then on that exact mistake cannot return without a red result.

An example from this site

The QA challenge is a made-up checkout with six hidden bugs. After you find a bug, the page shows the Playwright check that would catch it. Here is the one for the bug where a coupon can be used again and again:

The check for BUG-02, from the QA challenge
await applyCoupon(page, 'SAVE10');
await applyCoupon(page, 'SAVE10');
await expect(page.getByTestId('discount')).toHaveText('10%');

Written once and run after every change, those three lines are a regression test: if anyone ever breaks the coupon rule again, this fails.

Where the checks run

A regression suite only helps if it runs without anyone choosing to run it, so it belongs in the pipeline that runs on every push (CI). That is the shape of the automated test suite this site offers: tests for the journeys that matter most, running on every push, with a clear pass or fail.

Regression is not only about behaviour. A page can still work and look wrong. The Zong Health Scanner checks that too, by comparing each scan with an approved screenshot. That is visual regression testing.

What makes a regression test worth keeping

  • It started from something that really broke, or from something that would hurt a lot if it did.
  • It checks one thing, so that when it fails you know what to look at.
  • It does not depend on luck: not on the order tests run in, the time of day, or a third party answering quickly. A test that does is a flaky test, and a flaky test teaches people to ignore red.

Questions people ask

Is regression testing done by hand or by a program?

Both are possible. Repeating the same checks by hand after every change is slow and gets skipped, which is why the checks that matter most are usually automated.

How many regression tests do I need?

Fewer than people expect to start with. The journeys that would hurt most if they broke, such as sign-up, login and checkout, come first. The suite then grows by one test every time something breaks.

What is the difference between a regression test and any other test?

Mostly when it runs and why it exists. Any test can be a regression test once it is kept and run again after every change, to make sure old behaviour still works.

Where the facts come from

See also on this site