A multi-label classification approach for detecting test smells over java']java projects

被引:5
|
作者
Hadj-Kacem, Mouna [1 ]
Bouassida, Nadia [1 ]
机构
[1] Sfax Univ, Mircl Lab, Sfax, Tunisia
关键词
Test smells; Benchmark of test smells; Multi -label classification; Problem; -transformation; Ensemble method; CODE;
D O I
10.1016/j.jksuci.2021.10.008
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Software testing plays a critical role in the development and the assurance of the software quality. However, the quality of the code that is responsible for testing may, itself, be affected by poor design choices, known as test smells. In the literature, test smells may be interpreted differently by developers, which in turn can lead to different detection tools and results. In our work, we have selected the mostly commonly used detection tools and have investigated their overall agreement across different projects and different test smells. The found results were evaluated according to the average level of agreement, where we observed a definite disagreement between the tools. To overcome this gap of misinterpreta-tion, we propose in this paper a multi-label classification approach to detect test smells based on a deep representation of the test code. We conducted our experiments using 4 problem-transformation tech-niques and 4 ensemble techniques. To evaluate our experimental results, we built a benchmark using a tool-based approach for labelling and made it publicly available. Binary Relevance and RAkEL are found to be the best multi-label techniques that achieve high performance results.(c) 2021 The Authors. Published by Elsevier B.V. on behalf of King Saud University. This is an open access article under the CC BY-NC-ND license (http://creativecommons.org/licenses/by-nc-nd/4.0/).
引用
收藏
页码:8692 / 8701
页数:10
相关论文
共 50 条
  • [1] Exploring Transformers for Multi-Label Classification of Java']Java Vulnerabilities
    Mamede, Claudia
    Pinconschi, Eduard
    Abreu, Rui
    Campos, Jose
    2022 IEEE 22ND INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY, QRS, 2022, : 43 - 52
  • [2] On the diffusion of test smells and their relationship with test code quality of Java']Java projects
    Martins, Luana
    Costa, Heitor
    Machado, Ivan
    JOURNAL OF SOFTWARE-EVOLUTION AND PROCESS, 2024, 36 (04)
  • [3] MULAN: A Java']Java Library for Multi-Label Learning
    Tsoumakas, Grigorios
    Spyromitros-Xioufis, Eleftherios
    Vilcek, Jozef
    Vlahavas, Ioannis
    JOURNAL OF MACHINE LEARNING RESEARCH, 2011, 12 : 2411 - 2414
  • [4] Java']Java quality assurance by detecting code smells
    van Emden, E
    Moonen, L
    NINTH WORKING CONFERENCE ON REVERSE ENGINEERING, PROCEEDINGS, 2002, : 97 - 106
  • [5] Dependency Smells in Java']JavaScript Projects
    Jafari, Abbas Javan
    Costa, Diego Elias
    Abdalkareem, Rabe
    Shihab, Emad
    Tsantalis, Nikolaos
    IEEE TRANSACTIONS ON SOFTWARE ENGINEERING, 2022, 48 (10) : 3790 - 3807
  • [6] Detecting Modularity "Smells" in Dependencies Injected with Java']Java Annotations
    Roubtsov, Serguei
    Serebrenik, Alexander
    van den Brand, Mark
    14TH EUROPEAN CONFERENCE ON SOFTWARE MAINTENANCE AND REENGINEERING (CSMR 2010), 2010, : 244 - 247
  • [7] Multi-label software requirement smells classification using deep learning
    Alem, Ashagrew Liyih
    Gebretsadik, Ketema Keflie
    Mengistie, Shegaw Anagaw
    Admas, Muluye Fentie
    SCIENTIFIC REPORTS, 2025, 15 (01):
  • [8] An Empirical Study of Code Smells in Java']JavaScript Projects
    Saboury, Amir
    Musavi, Pooya
    Khomh, Foutse
    Antoniol, Giulio
    2017 IEEE 24TH INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION, AND REENGINEERING (SANER), 2017, : 294 - 305
  • [9] JS']JSNOSE: Detecting Java']JavaScript Code Smells
    Fard, Amin Milani
    Mesbah, Ali
    2013 IEEE 13TH INTERNATIONAL WORKING CONFERENCE ON SOURCE CODE ANALYSIS AND MANIPULATION (SCAM), 2013, : 116 - 125
  • [10] A federated approach for detecting the chest diseases using DenseNet for multi-label classification
    Priya, K. V.
    Peter, J. Dinesh
    COMPLEX & INTELLIGENT SYSTEMS, 2022, 8 (04) : 3121 - 3129