# Regression Test

> A test that checks old features still work after you change the code.

**Field:** Software Development  
**Category:** Testing & Quality  
**Also known as:** Regression Testing, Regression Suite

## Think of it like

Think of it like rewiring the kitchen. Then you check the lights in the other rooms still work.

## Definition

A regression test checks that something which used to work still works after a change. A regression is a bug that comes back, or a feature that quietly breaks. When you fix a bug, you add a test that would have caught it. That test then guards the fix forever. Over time, the whole test suite becomes your regression suite.

## Example

Emma fixes a bug where a cart with 0 items crashed. She adds a regression test for the empty cart, so it can never come back unseen.

## Why it matters

Changes in one place often break things somewhere else. Regression tests catch that before users do.

## Common mistake

Fixing a bug without adding a test for it. Six months later someone undoes the fix and nobody notices.

## Three principles

- **Old things still work.** After a change.
- **A test per fixed bug.** So it stays fixed.
- **Grows over time.** Your safety net.

## Related terms

- [Bug](https://learn.benibix.com/term/development/bug)
- [Test Suite](https://learn.benibix.com/term/development/test-suite)
- [Smoke Test](https://learn.benibix.com/term/development/smoke-test)
- [Unit Test](https://learn.benibix.com/term/development/unit-test)

## Told apart from

- [Smoke Test vs Regression Test](https://learn.benibix.com/compare/smoke-test-vs-regression-test): A smoke test is a quick check, in a minute or two, that the app works at all. A regression test checks that something which used to work still works after a change. Smoke tests ask if it is alive; regression tests ask if anything broke.

---

Source: https://learn.benibix.com/term/development/regression-test
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
