On the diffusion of test smells and their relationship with test code quality of Java projects

dc.creatorMartins, Luana
dc.creatorCosta, Heitor
dc.creatorMachado, Ivan
dc.date.accessioned2023-05-30T16:18:27Z
dc.date.available2023-05-30T16:18:27Z
dc.date.issued2023
dc.description.abstractTest smells are considered bad practices that can reduce the test code quality, thusharming software testing goals and maintenance activities. Prior studies haveinvestigated the diffusion of test smells and their impact on test code maintainability.However, we cannot directly compare the outcomes of the studies as most of themuse customized datasets. In response, we introduced theTSSM(Test Smells andStructural Metrics) dataset, containing test smells detected using theJNose Testtool and structural metrics (test code and production code) calculated with theCK metricstool of 13,703 open-source Java systems from GitHub. In addition, weperform an empirical study to investigate the relationship between test smells andstructural metrics of test code and the relationship between test smells on a large-scale dataset. We split the projects into three clusters to analyze the distribution oftest smells, the co-occurrences among test smells, and the correlation of test smellsand structural metrics of test code. The ratio of smelly test classes with a specific testsmell is similar among the clusters, but we could observe a significant difference inthe number of test smells among them. The test smellsSleepy Test,Mystery Guest,andResource Optimismrarely occur in the three clusters, and the last two are stronglycorrelated, indicating that those test smells are more severe than others. Our resultspoint out that most test smells have a moderate correlation with high complexity,large size, and coupling of the test code, indicating that they can also negativelyaffect its quality. To support further studies, we made our dataset publicly available.pt_BR
dc.description.provenanceSubmitted by Eliana Bernardes (eliana@biblioteca.ufla.br) on 2023-05-30T16:18:12Z No. of bitstreams: 0en
dc.description.provenanceApproved for entry into archive by Eliana Bernardes (eliana@biblioteca.ufla.br) on 2023-05-30T16:18:27Z (GMT) No. of bitstreams: 0en
dc.description.provenanceMade available in DSpace on 2023-05-30T16:18:27Z (GMT). No. of bitstreams: 0 Previous issue date: 2023en
dc.identifier.citationMARTINS, L.; COSTA, H.; MACHADO, I. On the diffusion of test smells and their relationship with test code quality of Java projects. Journal of Software: Evolution and Process, [S.l.], 2023.pt_BR
dc.identifier.urihttps://repositorio.ufla.br/handle/1/56890
dc.identifier.urihttps://onlinelibrary.wiley.com/doi/full/10.1002/smr.2532pt_BR
dc.languageen_USpt_BR
dc.publisherWileypt_BR
dc.rightsopenAccesspt_BR
dc.sourceJournal of Software: Evolution and Processpt_BR
dc.subjectDatasetpt_BR
dc.subjectReplication studypt_BR
dc.subjectStructural metricspt_BR
dc.subjectTest smellspt_BR
dc.titleOn the diffusion of test smells and their relationship with test code quality of Java projectspt_BR
dc.typeArtigopt_BR

Arquivos

Licença do pacote

Agora exibindo 1 - 1 de 1
Carregando...
Imagem de Miniatura
Nome:
license.txt
Tamanho:
956 B
Formato:
Item-specific license agreed upon to submission
Descrição: