Regression Testing: What It Is, When to Run It and How to Build a Suite
Regression testing is re-checking software that already worked after you change something, to confirm the change did not break it. You run it whenever code changes: a new feature, a bug fix, a dependency update, a config tweak. The goal is simple. Make sure yesterday’s working features still work today.
The name says it all. A regression is a step backward: a feature that used to work and now does not. Regression testing is how you catch those steps before your users do.
Why regressions happen
Software is a web of connections. You fix the date format on one screen and an export three screens away starts failing. Nobody was careless. The change touched something nobody remembered was connected.
This gets worse when code arrives faster than anyone can read it, which is common with AI coding assistants. Regression testing is the safety net under all of that. More in how to test AI-generated code.
When to run regression tests
Run them after any change that could affect existing behavior. In practice:
- Before every release. This is the non-negotiable one.
- After a bug fix. Fixes are famous for breaking neighbors.
- After a dependency or OS update. The code did not change, but the ground under it did.
- After a refactor. Behavior should be identical, and the only way to know is to check.
You do not need the full suite every time. A fast subset can run on each pull request, and the full pass before a release.
Regression, smoke and sanity testing are not the same thing
A smoke test asks “does the build even start and do the basics work?” A sanity test asks “does the thing we just changed behave sensibly?” Regression testing asks “did the change break anything else?” They answer different questions at different depths. We compare them side by side in smoke testing vs sanity testing.
How to build a regression suite
A regression suite is a list of checks you can repeat on demand. Start small and let it grow from real failures.
1. Start from what would hurt most
List the flows that, if broken, cost you money or trust. Sign up, log in, checkout, the core action your product exists for, password reset, the thing your biggest customer uses every day. These go in first, always.
2. Add a test for every bug you fix
This is the single best habit. When a bug reaches production, write down how to reproduce it and add that check to the suite. If the check covers the failure and runs against the affected configuration, it can detect a recurrence. Over time, your suite becomes a record of everything that has gone wrong. A good bug report makes this easy, see how to write a bug report.
3. Cover the edges of recent changes
For each release, add checks around what was touched: the changed screens, the features that share code with them, the integrations nearby. Ask the developer “what else might this affect?” The answer is usually the best test plan you will get.
4. Write each check so anyone can run it
A test case needs a starting state, steps and an expected result. “Check that checkout works” is not one. “With one item in the cart, apply a valid coupon, pay with a test card, confirm the order page shows the discounted total” is.
5. Prune on a schedule
Suites rot. Review yours every quarter and delete what no longer matters. A smaller suite you trust beats a big one everyone ignores.
How to prioritize
You will never have time to run everything on every change. Rank checks by likelihood and impact, including security, accessibility, data loss and platform-specific risks. P1, P2 and P3 below are example labels, not a universal convention.
| Priority | What goes here | When it runs |
|---|---|---|
| P1 | Revenue and access paths: sign up, login, payment, core feature | Every build and every release |
| P2 | Common secondary flows: settings, search, exports, notifications | Every release |
| P3 | Rare paths and edge cases | Before major releases, or when related code changes |
If a release is tight on time, run P1 completely and P2 in the areas that changed. Write down what you skipped. A known gap is a decision. An unknown gap is a surprise.
Manual vs automated regression testing
You need both, and the split is simpler than the debates make it sound.
Automate the checks that are stable, repetitive and boring. A login test that runs the same steps every time is a perfect candidate. Playwright and Cypress are common choices for web apps. Automated checks run in minutes and never get tired.
Keep manual the checks that need judgment. Does this screen look right on a small phone? Does the animation stutter? Does the flow make sense to a person seeing it for the first time? Automated tests also cost time to maintain: a UI change can break a test that was never wrong about the product, only about the markup. If a flow changes every sprint, automating it early may cost more than it saves.
There is also a limit that matters more than speed. An automated test checks exactly what someone told it to check. It can pass despite visual or device-specific failures unless the suite includes suitable checks, such as visual comparisons and tests on the affected hardware. A person looking at the product notices what nobody wrote down. That is why we pair automated suites with exploratory testing before a release: the suite proves the known paths still work, and a human looks for the unknown ones.
Real devices change the answer
A regression that only shows up on one device is invisible to a test running on a laptop. A layout holds in Chrome and breaks on a smart TV. If your users are on many devices, part of your pass needs the actual hardware, not an emulator that approximates it.
A regression checklist before a release
Copy this and adapt it to your product.
Before you start
- The release build is the one being tested, not a developer branch.
- The test environment matches production where it matters.
- The list of changes in this release is in front of you.
Core flows
- Sign up, log in, log out, password reset.
- The main action your product exists for, start to finish.
- Payment, if you take payments: success, failure, and a cancelled attempt.
- Permissions: a user cannot see or do what they should not.
Around the changes
- Every screen and feature touched in this release.
- Every fix confirmation-tested against the reported failure, with regression checks for related behavior.
Environments
- The browsers, OS versions and devices your users actually use. Check your analytics for the real list.
- A small screen and a large one, and a connection that drops mid-action.
Data and edge cases
- Empty states (a new account with nothing in it).
- Long text and accented names.
- Existing accounts with old data, not only fresh test accounts.
Before you say go
- Open bugs are triaged: ship, fix first, or ship with a known issue.
- Someone other than the developer who made the changes ran the pass.
The person who built a feature tests it the way they built it. A fresh pair of eyes tests it the way a user would.
What a good pass looks like
It is boring on purpose: the same list, a clear pass or fail on each line, and a short report with what was run, what failed and what was skipped. Each failure has steps to reproduce, the device and build, and a screenshot or recording.
If that sounds like work your team does not have hands for, you are not alone. It is exactly the kind of work that gets squeezed when a release date is close. Testing Humans puts a real QA tester on your product, on devices we confirm are available for your scope, working hours that overlap with the US. Whether you need a one-time pass or a tester on every release, you can see the options on our pricing section.