A tester finds a defect and reports it. During the bug fix, the developer accidentally introduces a new issue. What testing is required to catch this?
Regression testing involves re-running existing tests to ensure that changes, such as bug fixes, have not adversely affected previously working features. It is the specific process designed to detect when a fix inadvertently introduces new defects or breaks existing functionality elsewhere in the system, maintaining overall application integrity.
Why this answer
Regression testing is necessary whenever changes are made to the code. Even if a bug fix seems isolated, it can have unintended consequences in other parts of the system. By performing regression testing, the team ensures that the fix did not break existing, previously working functionality.
This is a fundamental safeguard against the risks of code modification and is essential for maintaining system stability throughout the development process.
Exam trap
Candidates might choose confirmation testing alone, forgetting that modifying code for a bug fix can introduce unexpected side effects elsewhere.