An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generation
Voith (United States) · University of Alberta · +2 more institutions
Abstract
Unit tests play a key role in ensuring the correctness of software. However, manually creating unit tests is a laborious task, motivating the need for automation. Large Language Models (LLMs) have recently been applied to various aspects of software development, including their suggested use for automated generation of unit tests, but while requiring additional training or few-shot learning on examples of existing tests. This paper presents a large-scale empirical evaluation on the effectiveness of LLMs for automated unit test generation without requiring additional training or manual effort. Concretely, we consider an approach where the LLM is provided with prompts that include the signature and…
Citation impact
- FWCI
- 55.35
- Percentile
- 100%
- References
- 76
Authors
4Topics & keywords
- Computer science
- Unit testing
- Correctness
- Documentation
- JavaScript
- Test (biology)
- Automation
- Artificial intelligence