Artigo

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

Carregando...
Imagem de Miniatura

Notas

Data

Orientadores

Editores

Coorientadores

Membros de banca

Título da Revista

ISSN da Revista

Título de Volume

Editor

Wiley

Faculdade, Instituto ou Escola

Departamento

Programa de Pós-Graduação

Agência de fomento

Tipo de impacto

Áreas Temáticas da Extenção

Objetivos de Desenvolvimento Sustentável

Dados abertos

Resumo

Abstract

Test 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.

Descrição

Área de concentração

Agência de desenvolvimento

Palavra chave

Marca

Objetivo

Procedência

Submitted by Eliana Bernardes (eliana@biblioteca.ufla.br) on 2023-05-30T16:18:12Z No. of bitstreams: 0
Approved for entry into archive by Eliana Bernardes (eliana@biblioteca.ufla.br) on 2023-05-30T16:18:27Z (GMT) No. of bitstreams: 0
Made available in DSpace on 2023-05-30T16:18:27Z (GMT). No. of bitstreams: 0 Previous issue date: 2023

Impacto da pesquisa

Resumen

ISBN

DOI

Citação

MARTINS, 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.

Link externo

Avaliação

Revisão

Suplementado Por

Referenciado Por