articleIEEE Transactions on Software EngineeringNov 28, 2023Closed access

An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generation

Voith (United States) · University of Alberta · +2 more institutions

Indexed incrossref

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

268
total citations
FWCI
55.35
Percentile
100%
References
76
Citations per year

Authors

4

Topics & keywords

Keywords
  • Computer science
  • Unit testing
  • Correctness
  • Documentation
  • JavaScript
  • Test (biology)
  • Automation
  • Artificial intelligence
No related works found for this paper.

Funding