Regression testing
Регрессионное тестирование
A way to check that features which worked before still behave as expected after a change. It helps catch unintended side effects of updates and fixes.
Also known as: регресс
What regression testing catches
Suppose a team adds a new shipping provider. The new option works, but customers who select store pickup are now charged a delivery fee. That's a regression: behavior that used to work has broken. Testing the new provider demonstrates that the new feature works in the cases tested. Regression testing asks a different question: did the change break anything we meant to keep working?
How teams decide what to run
Start with the change and trace its dependencies. If the team updated a shared shipping calculator, check the checkout paths that use it, not just the new carrier. Prioritize by the likelihood and impact of a failure: an incorrect total or a blocked checkout usually matters more than a formatting issue in an internal report. Code changes aren't the only trigger. A runtime upgrade, database migration, or configuration change can also affect existing behavior.
A team might run fast checks on each pull request and reserve a broader suite for nightly builds or releases. The right scope depends on how widely the change can spread, how long the tests take, and what would happen if a failure reached users. A passing run is evidence about the cases it covered, not proof that nothing broke.
Example: protect store pickup
For an order with store pickup selected, check that the shipping fee is zero and that the amount sent for payment matches the total shown at checkout. A unit test can lock down the fee rule, while an integration test can verify that checkout passes the correct amount to the payment component. An end-to-end test may be worthwhile if the team needs confidence that the pickup choice survives the full flow from cart to order confirmation. There is no need to repeat every fee calculation through the browser when a faster test can catch the same failure.
Common mix-ups
Confirmation testing, often called retesting, checks whether a specific fix worked. If pickup orders were charged a fee, repeating the original failing steps confirms the fix. Checking that home delivery still charges the correct fee looks for side effects. The original pickup check can also become a regression test: on future builds, it can catch the same bug coming back.
Smoke testing checks whether a build is stable enough for further testing. A basic checkout scenario might belong to both a smoke suite and a regression suite, but the suites serve different purposes. Regression testing also doesn't have to be automated: automate stable, repeatable checks and use manual testing where human judgment adds value, such as assessing whether a layout change makes order totals hard to read.
In an interview
Expect a scenario with limited time: a shared component changed and the release is due today. Explain what you'd test first and why, then say what would remain untested. If a check fails, don't assume it's a product regression. Compare the result with the current requirements and check the test data and environment before deciding whether the product or the test needs to change.