On the test smells detection: an empirical study on the JNose Test accuracy

Detalhes bibliográficos
Autor(a) principal: Virgínio, Tássio
Data de Publicação: 2021
Outros Autores: Martins, Luana, Santana, Railana, Cruz, Adriana, Rocha, Larissa, Costa, Heitor, Machado, Ivan
Tipo de documento: Artigo
Idioma: eng
Título da fonte: Repositório Institucional da UFLA
Texto Completo: http://repositorio.ufla.br/jspui/handle/1/50855
Resumo: Several strategies have supported test quality measurement and analysis. For example, code coverage, a widely used one, enables verification of the test case to cover as many source code branches as possible. Another set of affordable strategies to evaluate the test code quality exists, such as test smells analysis. Test smells are poor design choices in test code implementation, and their occurrence might reduce the test suite quality. A practical and largescale test smells identification depends on automated tool support. Otherwise, test smells analysis could become a cost-ineffective strategy. In an earlier study, we proposed the JNose Test, automated tool support to detect test smells and analyze test suite quality from the test smells perspective. This study extends the previous one in two directions: i) we implemented the JNose-Core, an API encompassing the test smells detection rules. Through an extensible architecture, the tool is now capable of accomodating new detection rules or programming languages; and ii) we performed an empirical study to evaluate the JNose Test effectiveness and compare it against the state-of-the-art tool, the tsDetect. Results showed that the JNose-Core precision score ranges from 91% to 100%, and the recall score from 89% to 100%. It also presented a slight improvement in the test smells detection rules compared to the tsDetect for the test smells detection at the class level.
id UFLA_37e491589f68472102370f1dc836d354
oai_identifier_str oai:localhost:1/50855
network_acronym_str UFLA
network_name_str Repositório Institucional da UFLA
repository_id_str
spelling On the test smells detection: an empirical study on the JNose Test accuracyTests qualityTest evolutionTest smellsEvidence-based software engineeringSeveral strategies have supported test quality measurement and analysis. For example, code coverage, a widely used one, enables verification of the test case to cover as many source code branches as possible. Another set of affordable strategies to evaluate the test code quality exists, such as test smells analysis. Test smells are poor design choices in test code implementation, and their occurrence might reduce the test suite quality. A practical and largescale test smells identification depends on automated tool support. Otherwise, test smells analysis could become a cost-ineffective strategy. In an earlier study, we proposed the JNose Test, automated tool support to detect test smells and analyze test suite quality from the test smells perspective. This study extends the previous one in two directions: i) we implemented the JNose-Core, an API encompassing the test smells detection rules. Through an extensible architecture, the tool is now capable of accomodating new detection rules or programming languages; and ii) we performed an empirical study to evaluate the JNose Test effectiveness and compare it against the state-of-the-art tool, the tsDetect. Results showed that the JNose-Core precision score ranges from 91% to 100%, and the recall score from 89% to 100%. It also presented a slight improvement in the test smells detection rules compared to the tsDetect for the test smells detection at the class level.Sociedade Brasileira de Computação2022-08-05T19:14:51Z2022-08-05T19:14:51Z2021info:eu-repo/semantics/publishedVersioninfo:eu-repo/semantics/articleapplication/pdfVIRGÍNIO, T. et al. On the test smells detection: an empirical study on the JNose Test accuracy. Journal of Software Engineering Research and Development, [S.l.], v. 9, 2021.http://repositorio.ufla.br/jspui/handle/1/50855Journal of Software Engineering Research and Developmentreponame:Repositório Institucional da UFLAinstname:Universidade Federal de Lavras (UFLA)instacron:UFLAAttribution 4.0 Internationalhttp://creativecommons.org/licenses/by/4.0/info:eu-repo/semantics/openAccessVirgínio, TássioMartins, LuanaSantana, RailanaCruz, AdrianaRocha, LarissaCosta, HeitorMachado, Ivaneng2022-08-05T19:14:52Zoai:localhost:1/50855Repositório InstitucionalPUBhttp://repositorio.ufla.br/oai/requestnivaldo@ufla.br || repositorio.biblioteca@ufla.bropendoar:2022-08-05T19:14:52Repositório Institucional da UFLA - Universidade Federal de Lavras (UFLA)false
dc.title.none.fl_str_mv On the test smells detection: an empirical study on the JNose Test accuracy
title On the test smells detection: an empirical study on the JNose Test accuracy
spellingShingle On the test smells detection: an empirical study on the JNose Test accuracy
Virgínio, Tássio
Tests quality
Test evolution
Test smells
Evidence-based software engineering
title_short On the test smells detection: an empirical study on the JNose Test accuracy
title_full On the test smells detection: an empirical study on the JNose Test accuracy
title_fullStr On the test smells detection: an empirical study on the JNose Test accuracy
title_full_unstemmed On the test smells detection: an empirical study on the JNose Test accuracy
title_sort On the test smells detection: an empirical study on the JNose Test accuracy
author Virgínio, Tássio
author_facet Virgínio, Tássio
Martins, Luana
Santana, Railana
Cruz, Adriana
Rocha, Larissa
Costa, Heitor
Machado, Ivan
author_role author
author2 Martins, Luana
Santana, Railana
Cruz, Adriana
Rocha, Larissa
Costa, Heitor
Machado, Ivan
author2_role author
author
author
author
author
author
dc.contributor.author.fl_str_mv Virgínio, Tássio
Martins, Luana
Santana, Railana
Cruz, Adriana
Rocha, Larissa
Costa, Heitor
Machado, Ivan
dc.subject.por.fl_str_mv Tests quality
Test evolution
Test smells
Evidence-based software engineering
topic Tests quality
Test evolution
Test smells
Evidence-based software engineering
description Several strategies have supported test quality measurement and analysis. For example, code coverage, a widely used one, enables verification of the test case to cover as many source code branches as possible. Another set of affordable strategies to evaluate the test code quality exists, such as test smells analysis. Test smells are poor design choices in test code implementation, and their occurrence might reduce the test suite quality. A practical and largescale test smells identification depends on automated tool support. Otherwise, test smells analysis could become a cost-ineffective strategy. In an earlier study, we proposed the JNose Test, automated tool support to detect test smells and analyze test suite quality from the test smells perspective. This study extends the previous one in two directions: i) we implemented the JNose-Core, an API encompassing the test smells detection rules. Through an extensible architecture, the tool is now capable of accomodating new detection rules or programming languages; and ii) we performed an empirical study to evaluate the JNose Test effectiveness and compare it against the state-of-the-art tool, the tsDetect. Results showed that the JNose-Core precision score ranges from 91% to 100%, and the recall score from 89% to 100%. It also presented a slight improvement in the test smells detection rules compared to the tsDetect for the test smells detection at the class level.
publishDate 2021
dc.date.none.fl_str_mv 2021
2022-08-05T19:14:51Z
2022-08-05T19:14:51Z
dc.type.status.fl_str_mv info:eu-repo/semantics/publishedVersion
dc.type.driver.fl_str_mv info:eu-repo/semantics/article
format article
status_str publishedVersion
dc.identifier.uri.fl_str_mv VIRGÍNIO, T. et al. On the test smells detection: an empirical study on the JNose Test accuracy. Journal of Software Engineering Research and Development, [S.l.], v. 9, 2021.
http://repositorio.ufla.br/jspui/handle/1/50855
identifier_str_mv VIRGÍNIO, T. et al. On the test smells detection: an empirical study on the JNose Test accuracy. Journal of Software Engineering Research and Development, [S.l.], v. 9, 2021.
url http://repositorio.ufla.br/jspui/handle/1/50855
dc.language.iso.fl_str_mv eng
language eng
dc.rights.driver.fl_str_mv Attribution 4.0 International
http://creativecommons.org/licenses/by/4.0/
info:eu-repo/semantics/openAccess
rights_invalid_str_mv Attribution 4.0 International
http://creativecommons.org/licenses/by/4.0/
eu_rights_str_mv openAccess
dc.format.none.fl_str_mv application/pdf
dc.publisher.none.fl_str_mv Sociedade Brasileira de Computação
publisher.none.fl_str_mv Sociedade Brasileira de Computação
dc.source.none.fl_str_mv Journal of Software Engineering Research and Development
reponame:Repositório Institucional da UFLA
instname:Universidade Federal de Lavras (UFLA)
instacron:UFLA
instname_str Universidade Federal de Lavras (UFLA)
instacron_str UFLA
institution UFLA
reponame_str Repositório Institucional da UFLA
collection Repositório Institucional da UFLA
repository.name.fl_str_mv Repositório Institucional da UFLA - Universidade Federal de Lavras (UFLA)
repository.mail.fl_str_mv nivaldo@ufla.br || repositorio.biblioteca@ufla.br
_version_ 1807835093340782592