Back to the glossary

Test levels and methods

Regression test

A regression test makes sure that features which already worked still work after a change, so that old bugs do not return and no new side effects appear.

Also known as: regression testing

Why regression tests?

Every change, whether a new feature, a bug fix or a library update, can break something in an unexpected place. Regression tests therefore repeat existing tests after each change. They are not a separate type of test but a purpose: unit, integration and system tests can all serve as regression tests.

Regression testing needs automation

With every release, the amount of behaviour that must keep working grows. At some point that can no longer be covered manually, and testing turns into spot checks. Automated regression tests run on every commit or every night and report immediately which change caused a problem.

Good practice

  • Write a test for every bug found, so it will be caught in future.
  • Fast tests on every commit, slow ones overnight.
  • Fix unstable tests consistently, or the suite loses the team’s trust.