An Empirical Study on the Detection of Test Smells in Test Codes Generated by GitHub Copilot
Various techniques for automatically generating unit tests have been studied. The use of Large Language Models (LLMs) has recently emerged as a popular approach for automatic test generation from natural language descriptions. This study aims to measure the quality of the test codes produced by LLMs by detecting test smells in the test cases generate. To do this, we proposed an empirical study and a quality assessment methodology to be performed for each LLM that generates code. In our preliminary results, we applied these procedures with GitHub Copilot and obtained significant data on the quality of test codes. These findings indicate that although GitHub Copilot can generate valid unit tests, quality violations are still frequently found in these codes.
Authors
- Victor Alves (ORCID: https://orcid.org/0000-0003-1819-7051)
- Carla Bezerra (ORCID: https://orcid.org/0000-0002-5879-5067)
- Ivan Machado
Institutions
- United Food and Commercial Workers (US)
Publication Details
- Published
- 2024-09-30
- DOI
- https://doi.org/10.5753/cbsoft_estendido.2024.4102
- Primary Topic
- Software Testing and Debugging Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00