Regression testing means checking that things which used to work still work, after something has changed. It is the least glamorous activity in software quality and probably the most valuable, because the defects it catches are the ones that most annoy users: features that worked last week and do not work now.
Why working software breaks
Software components depend on each other in ways nobody fully holds in their head. A developer fixes a rounding error in a pricing function, and the invoice total changes. Someone updates a shared library, and a form that relied on its old behaviour stops validating. A new feature writes to a field another feature reads differently.
None of these are careless mistakes. They are the ordinary consequence of changing a connected system, which is why regression testing exists rather than being a sign that someone did a bad job.
When it is needed
- After any bug fix. Fixes are a common cause of new defects, because they change behaviour other code may depend on.
- After a new feature is added, particularly where it touches shared data or shared components.
- After a dependency or framework update. These are high risk and often underestimated, because the change is not in your own code.
- After a configuration or environment change, including a server migration.
- Before every release, as a final check on the core paths.
What to include
You cannot retest everything, so choose deliberately. A sound regression suite covers:
- The critical user journeys. Whatever the product exists to do: registration, login, search, checkout, submission. If one of these breaks, nothing else matters.
- Anything near the change. The same module, the same data, the same shared components.
- Previously broken areas. Defects cluster. Code that has broken before is likely to break again.
- Integrations. Payment providers, email delivery, third-party services.
- Anything with money or data loss attached, where a failure is expensive rather than annoying.
Where automation fits
Regression testing is the clearest case for automation, because it is the same checks run repeatedly, which is exactly what machines are good at and people are bad at. Running two hundred checks manually before every release is slow, and by the fortieth a human stops reading carefully.
Automate the stable, repetitive, critical paths. Keep manual effort for new features, exploratory work and anything involving visual or subjective judgement. The usual mistake is trying to automate everything, which produces a fragile suite that nobody maintains and everybody eventually ignores.
Keep the suite healthy
Regression suites decay in two directions, and both are common.
They grow indefinitely, as cases are added and never removed, until the suite takes four hours and gets skipped under deadline pressure. Review it periodically and remove cases that no longer test anything meaningful.
Or they become unreliable, with tests that fail intermittently for reasons unrelated to the product. A suite people do not trust is worse than no suite, because a real failure gets dismissed as flakiness. Fix or remove unreliable tests promptly.
How to talk about it in an interview
Junior candidates are frequently asked the difference between regression and retesting, and it is a short answer worth having ready. Retesting confirms that a specific bug has been fixed. Regression confirms that fixing it has not broken anything else. You usually do both, and they answer different questions.
If you can add how you would choose what goes into a regression suite, based on risk and criticality rather than trying to cover everything, that is the part that sounds like someone who has thought about the job.