Evaluating Large Language Models for the Generation of Unit Tests with Equivalence Partitions and Boundary Values
Rodríguez, Martín, Rossi, Gustavo, Fernandez, Alejandro
–arXiv.org Artificial Intelligence
The design and implementation of unit tests is a complex task many programmers neglect. This research evaluates the potential of Large Language Models (LLMs) in automatically generating test cases, comparing them with manual tests. An optimized prompt was developed, that integrates code and requirements, covering critical cases such as equivalence partitions and boundary values. The strengths and weaknesses of LLMs versus trained programmers were compared through quantitative metrics and manual qualitative analysis. The results show that the effectiveness of LLMs depends on well-designed prompts, robust implementation, and precise requirements. Although flexible and promising, LLMs still require human supervision. This work highlights the importance of manual qualitative analysis as an essential complement to automation in unit test evaluation.
arXiv.org Artificial Intelligence
May-16-2025
- Country:
- Asia > Middle East
- Republic of Türkiye > Istanbul Province > Istanbul (0.04)
- Europe
- Middle East > Republic of Türkiye
- Istanbul Province > Istanbul (0.04)
- Monaco (0.04)
- Middle East > Republic of Türkiye
- North America > United States
- New York > New York County > New York City (0.05)
- South America
- Argentina > Pampas
- Buenos Aires Province > La Plata (0.04)
- Brazil > Mato Grosso do Sul
- Campo Grande (0.04)
- Argentina > Pampas
- Asia > Middle East
- Genre:
- Research Report > New Finding (0.66)
- Technology: