Regression testing
Regression testing is rechecking what already worked after a change, to make sure the new change did not break the old. Example: a shop adds discounts, and the regression run goes through checkout and payment again, since they might have been touched. The set of such checks grows with every bug found, so it is automated: automated tests run after every change or overnight. A test that passed before and now fails signals a regression.
Smoke, regression and end-to-end tests
| Smoke | Regression | End-to-end (e2e) | |
|---|---|---|---|
| Goal | decide whether to test further | make sure old things did not break | walk a whole user path |
| When | right after a build or release | after changes, overnight, before release | before and after release |
| Scope | small: only the main things | large: everything that worked | small to medium: key paths end to end |
| Who | automated test or tester, minutes | mostly automated tests | automated tests or QA |
Frequently asked questions
What is regression testing?
Rechecking what already worked after a change to make sure the new change broke nothing.When should regression run?
After every change if the set is fast, and overnight or before release if it is large. The more often, the sooner a break shows.How is regression different from smoke testing?
Smoke testing quickly checks only the main things to decide whether to go on. Regression covers everything that worked before and takes longer.Can regression be automated?
Yes, it is the main place for automated tests: the set repeats many times. Flaky tests that fail for no reason erode trust in such a set.Source: Wikipedia: Regression testing
Where it appears · 3
- AI agent maturity levels · Specs and context
- How to find a race condition in code · Specs and context
- Model checking vs testing · Specs and context