What is regression testing?
Options
- Re-running tests to check old features still work (Correct option)
- Testing only the new feature that was just added
- Testing the database backup that was just made
- Testing the speed of the app on old hardware
Answer
Re-running tests after a change to make sure existing features still work
Why
A regression is when something that used to work breaks after a change.
Regression testing re-checks old behavior every time you change the code. It is the main reason to automate tests: running hundreds of old checks by hand every release is not realistic.
When you fix a bug, you add a test for it, which keeps that bug from coming back.
Remember
Regression test = did my change break something old?