Title :
Refactoring with Unit Testing: A Match Made in Heaven?
Author :
Vonken, Frens ; Zaidman, Andy
Author_Institution :
Fontys Univ. of Appl. Sci., Eindhoven, Netherlands
Abstract :
Unit testing is a basic principle of agile development. Its benefits include early defect detection, defect cause localization and removal of fear to apply changes to the code. As such, unit tests seem to be ideal companions during refactoring, as they provide a safety net which enables to quickly verify that behaviour is indeed preserved. In this study we investigate whether having unit tests available during refactoring actually leads to quicker refactorings and more high-quality code after refactoring. For this, we set up a two-group controlled experiment involving 42 participants. Results indicate that having unit tests available during refactoring does not lead to quicker refactoring or to higher-quality code after refactoring.
Keywords :
program testing; software maintenance; software prototyping; agile development; defect cause localization; defect detection; fear removal; refactorings; safety net; two-group controlled experiment; unit testing; Availability; Dispersion; Industries; Inspection; Production; Software; Testing; refactoring; unit testing;
Conference_Titel :
Reverse Engineering (WCRE), 2012 19th Working Conference on
Conference_Location :
Kingston, ON
Print_ISBN :
978-1-4673-4536-1
DOI :
10.1109/WCRE.2012.13