DocumentCode :
2577668
Title :
Refactoring with Unit Testing: A Match Made in Heaven?
Author :
Vonken, Frens ; Zaidman, Andy
Author_Institution :
Fontys Univ. of Appl. Sci., Eindhoven, Netherlands
fYear :
2012
fDate :
15-18 Oct. 2012
Firstpage :
29
Lastpage :
38
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;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Reverse Engineering (WCRE), 2012 19th Working Conference on
Conference_Location :
Kingston, ON
ISSN :
1095-1350
Print_ISBN :
978-1-4673-4536-1
Type :
conf
DOI :
10.1109/WCRE.2012.13
Filename :
6385099
Link To Document :
بازگشت