Evaluating Large Language Models in Detecting Test Smells

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Lucas, Keila, Gheyi, Rohit, Soares, Elvys, Ribeiro, Márcio, Machado, Ivan
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866910546587025408
author Lucas, Keila
Gheyi, Rohit
Soares, Elvys
Ribeiro, Márcio
Machado, Ivan
author_facet Lucas, Keila
Gheyi, Rohit
Soares, Elvys
Ribeiro, Márcio
Machado, Ivan
contents Test smells are coding issues that typically arise from inadequate practices, a lack of knowledge about effective testing, or deadline pressures to complete projects. The presence of test smells can negatively impact the maintainability and reliability of software. While there are tools that use advanced static analysis or machine learning techniques to detect test smells, these tools often require effort to be used. This study aims to evaluate the capability of Large Language Models (LLMs) in automatically detecting test smells. We evaluated ChatGPT-4, Mistral Large, and Gemini Advanced using 30 types of test smells across codebases in seven different programming languages collected from the literature. ChatGPT-4 identified 21 types of test smells. Gemini Advanced identified 17 types, while Mistral Large detected 15 types of test smells. Conclusion: The LLMs demonstrated potential as a valuable tool in identifying test smells.
format Preprint
id arxiv_https___arxiv_org_abs_2407_19261
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Evaluating Large Language Models in Detecting Test Smells
Lucas, Keila
Gheyi, Rohit
Soares, Elvys
Ribeiro, Márcio
Machado, Ivan
Software Engineering
Test smells are coding issues that typically arise from inadequate practices, a lack of knowledge about effective testing, or deadline pressures to complete projects. The presence of test smells can negatively impact the maintainability and reliability of software. While there are tools that use advanced static analysis or machine learning techniques to detect test smells, these tools often require effort to be used. This study aims to evaluate the capability of Large Language Models (LLMs) in automatically detecting test smells. We evaluated ChatGPT-4, Mistral Large, and Gemini Advanced using 30 types of test smells across codebases in seven different programming languages collected from the literature. ChatGPT-4 identified 21 types of test smells. Gemini Advanced identified 17 types, while Mistral Large detected 15 types of test smells. Conclusion: The LLMs demonstrated potential as a valuable tool in identifying test smells.
title Evaluating Large Language Models in Detecting Test Smells
topic Software Engineering
url https://arxiv.org/abs/2407.19261