Analyzing Test Smells Refactoring from a Developers Perspective

被引:2
作者
Damasceno, Humberto [1 ]
Bezerra, Carla [1 ]
Coutinho, Emanuel [1 ]
Machado, Ivan [2 ]
机构
[1] Univ Fed Ceara, Quixada, Ceara, Brazil
[2] Univ Fed Bahia, Salvador, BA, Brazil
来源
PROCEEDINGS OF THE 21TH BRAZILIAN SYMPOSIUM ON SOFTWARE QUALITY, SBOS 2022 | 2022年
关键词
test smells; refactoring; software quality; SOFTWARE;
D O I
10.1145/3571473.3571487
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Test smells represent a set of poorly designed tests, which can harm a test code's maintenance and quality criteria. Although fundamental steps to understand test smells have been investigated, there is still an evident lack of studies evaluating the impact of test smell refactoring from internal quality attributes, such as size, cohesion, coupling, and complexity. In addition, the literature still lacks research that addresses the difficulties developers encounter during test smell refactoring. The paper investigates the impact of test smell refactoring from developers' perspectives and internal quality attributes. We investigated the perceptions and difficulties encountered by 20 developers while removing 5 types of test smells in 4 open-source projects over two months. Through this experiment, we analyzed: (i) the impact that test smell refactoring has on internal quality attributes; (ii) developers' perception of test smells as actual problems within a software system; and (iii) main difficulties encountered by developers during test smell refactoring. Our findings can help developers design a prioritization scheme for test smell refactoring and make them aware of the real benefits of test smell refactoring.
引用
收藏
页数:10
相关论文
共 45 条
  • [1] Alenezi M., 2015, International Journal of Hybrid Information Technology, V8, P257, DOI DOI 10.14257/IJHIT.2015.8.2.24
  • [2] Test Smell Detection Tools: A Systematic Mapping Study
    Aljedaani, Wajdi
    Peruma, Anthony
    Aljohani, Ahmed
    Alotaibi, Mazen
    Mkaouer, Mohamed Wiem
    Ouni, Ali
    Newman, Christian D.
    Ghallab, Abdullatif
    Ludi, Stephanie
    [J]. PROCEEDINGS OF EVALUATION AND ASSESSMENT IN SOFTWARE ENGINEERING (EASE 2021), 2021, : 170 - 180
  • [3] Are test smells really harmful? An empirical study
    Bavota, Gabriele
    Qusef, Abdallah
    Oliveto, Rocco
    De Lucia, Andrea
    Binkley, Dave
    [J]. EMPIRICAL SOFTWARE ENGINEERING, 2015, 20 (04) : 1052 - 1094
  • [4] Bavota G, 2012, 2012 28TH IEEE INTERNATIONAL CONFERENCE ON SOFTWARE MAINTENANCE (ICSM), P56, DOI 10.1109/ICSM.2012.6405253
  • [5] Developer Testing in the IDE: Patterns, Beliefs, and Behavior
    Beller, Moritz
    Gousios, Georgios
    Panichella, Annibale
    Proksch, Sebastian
    Amann, Sven
    Zaidman, Andy
    [J]. IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2019, 45 (03) : 261 - 284
  • [6] When, How, and Why Developers (Do Not) Test in Their IDEs
    Beller, Moritz
    Gousios, Georgios
    Panichella, Annibale
    Zaidman, Andy
    [J]. 2015 10TH JOINT MEETING OF THE EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND THE ACM SIGSOFT SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING (ESEC/FSE 2015) PROCEEDINGS, 2015, : 179 - 190
  • [7] Berner S, 2005, PROC INT CONF SOFTW, P571
  • [8] Software testing research: Achievements, challenges, dreams
    Bertolino, Antonia
    [J]. FOSE 2007: FUTURE OF SOFTWARE ENGINEERING, 2007, : 85 - 103
  • [9] Bieman J. M., 1995, SIGSOFT Software Engineering Notes, P259, DOI 10.1145/223427.211856
  • [10] Campos D, 2021, Arxiv, DOI arXiv:2107.13902