TY - GEN
T1 - An Exploratory Study on the Refactoring of Unit Test Files in Android Applications
AU - Peruma, Anthony
AU - Newman, Christian D.
AU - Mkaouer, Mohamed Wiem
AU - Ouni, Ali
AU - Palomba, Fabio
N1 - Publisher Copyright:
© 2020 ACM.
PY - 2020/6/27
Y1 - 2020/6/27
N2 - An essential activity of software maintenance is the refactoring of source code. Refactoring operations enable developers to take necessary actions to correct bad programming practices (i.e., smells) in the source code of both production and test files. With unit testing being a vital and fundamental part of ensuring the quality of a system, developers must address smelly test code. In this paper, we empirically explore the impact and relationship between refactoring operations and test smells in 250 open-source Android applications (apps). Our experiments showed that the type of refactoring operations performed by developers on test files differ from those performed on non-test files. Further, results around test smells show a co-occurrence between certain smell types and refactorings, and how refactorings are utilized to eliminate smells. Findings from this study will not only further our knowledge of refactoring operations on test files, but will also help developers in understanding the possible ways on how to maintain their apps.
AB - An essential activity of software maintenance is the refactoring of source code. Refactoring operations enable developers to take necessary actions to correct bad programming practices (i.e., smells) in the source code of both production and test files. With unit testing being a vital and fundamental part of ensuring the quality of a system, developers must address smelly test code. In this paper, we empirically explore the impact and relationship between refactoring operations and test smells in 250 open-source Android applications (apps). Our experiments showed that the type of refactoring operations performed by developers on test files differ from those performed on non-test files. Further, results around test smells show a co-occurrence between certain smell types and refactorings, and how refactorings are utilized to eliminate smells. Findings from this study will not only further our knowledge of refactoring operations on test files, but will also help developers in understanding the possible ways on how to maintain their apps.
KW - Android applications
KW - Refactoring
KW - Software maintenance and evolution
KW - Test smells
KW - Unit testing
UR - https://www.scopus.com/pages/publications/85093121156
U2 - 10.1145/3387940.3392189
DO - 10.1145/3387940.3392189
M3 - Contribution to conference proceedings
AN - SCOPUS:85093121156
T3 - Proceedings - 2020 IEEE/ACM 42nd International Conference on Software Engineering Workshops, ICSEW 2020
SP - 350
EP - 357
BT - Proceedings - 2020 IEEE/ACM 42nd International Conference on Software Engineering Workshops, ICSEW 2020
PB - Association for Computing Machinery, Inc
T2 - 42nd IEEE/ACM International Conference on Software Engineering Workshops, ICSEW 2020
Y2 - 27 June 2020 through 19 July 2020
ER -