What is the purpose of "regression testing" in software development?
2025
What is the purpose of "regression testing" in software development?
- A.
To test new features of an application
- B.
To ensure that code changes do not break existing functionality
- C.
To analyze code coverage during testing
- D.
To identify performance bottlenecks in an application
Attempted by 196 students.
Show answer & explanation
Correct answer: B
Answer: To ensure that code changes do not break existing functionality
Explanation: Regression testing verifies that recent code modifications (such as bug fixes, new features, or refactoring) have not introduced new defects into parts of the system that previously worked.
When it's done: after bug fixes, feature changes, or refactoring.
How it's done: re-run existing test cases (manual or automated) that cover previously working functionality.
Common practices: maintain an automated regression test suite and run it in continuous integration to catch regressions early.