volume_mute

Regression Testing and Refactoring Safety

publish date2026/06/24 21:27:37.280812 UTC

volume_mute

How does an emphasis on regression testing in agile methods help reduce the risk of refactoring?

Correct Answer

Errors introduced through refactoring should be detectable because previously successful tests would then fail

Explanation

The strong emphasis on regression testing in agile methods lowers the risk of refactoring introducing new errors. If refactoring breaks something that previously worked, the previously successful regression tests should then fail, immediately alerting developers to the problem.

Reference

Software Engineering, Ian Sommerville, 10th edition


Quizzes you can take where this question appears