• Home
  • Search
  • Unit Test Generation Using Large Language Models: A Systematic Literature Review
  • Cite Icon7
  • https://doi.org/10.15388/lmitt.2024.20Copy DOI Icon

Unit Test Generation Using Large Language Models: A Systematic Literature Review

Show More
  • Abstract
  • Highlights & Summary
  • PDF
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

Unit testing is a fundamental aspect of software development, ensuring the correctness and robustness of code implementations. Traditionally, unit tests are manually crafted by developers based on their understanding of the code and its requirements. However, this process can be time-consuming, errorprone, and may overlook certain edge cases. In recent years, there has been growing interest in leveraging large language models (LLMs) for automating the generation of unit tests. LLMs, such as GPT (Generative Pre-trained Transformer), CodeT5, StarCoder, LLaMA, have demonstrated remarkable capabilities in natural language understanding and code generation tasks. By using LLMs, researchers aim to develop techniques that automatically generate unit tests from code snippets or specifications, thus optimizing the software testing process. This paper presents a literature review of articles that use LLMs for unit test generation tasks. It also discusses the history of the most commonly used large language models and their parameters, including the first time they have been used for code generation tasks. The result of this study presents the large language models for code and unit test generation tasks and their increasing popularity in code generation domain, indicating a great promise for the future of unit test generation using LLMs.

Loading PDF

Similar Papers
  • Research Article
  • Citations8

Building a Coding Assistant via the Retrieval-Augmented Language Model

  • Jan 17, 2025
  • ACM Transactions on Information Systems
  • Xinze Li +8
  • Research Article
  • Citations1

Evaluating the Test Adequacy of Benchmarks for LLMs on Code Generation

  • Jun 25, 2025
  • Journal of Software: Evolution and Process
  • Xiangyue Liu +5
  • Research Article
  • Citations2

Towards Secure Code Generation With LLMs: A Study on Common Weakness Enumeration

  • Dec 01, 2025
  • IEEE Transactions on Software Engineering
  • Jianguo Zhao +6
  • Research Article
  • Citations4

GeoJSEval: An Automated Evaluation Framework for Large Language Models on JavaScript-Based Geospatial Computation and Visualization Code Generation

  • Sep 28, 2025
  • ISPRS International Journal of Geo-Information
  • Guanyu Chen +8
  • Research Article
  • Citations3

Less Is More: On the Importance of Data Quality for Unit Test Generation

  • Jun 19, 2025
  • Proceedings of the ACM on Software Engineering
  • Junwei Zhang +5
  • Research Article

Benchmarking LLMs for Unit Test Generation from Real-World Functions

  • Mar 28, 2026
  • ACM Transactions on Software Engineering and Methodology
  • Dong Huang +5
  • Research Article
  • Citations1

Anchor Attention, Small Cache: Code Generation With Large Language Models

  • Jun 01, 2025
  • IEEE Transactions on Software Engineering
  • Xiangyu Zhang +4
  • Preprint Article

Code Generation: GPT vs Llama 4

  • May 16, 2025
  • Front Matter
  • Yao Chen
  • Supplementary Content

Vibe Coding in Vernacular Contexts: A Comprehensive Study on Tamil and Global Implications for Multilingual Programming Education

  • Sep 12, 2025
  • Research Square
  • N R Chilambarasan +1
  • Research Article

Impact of code context and prompting strategies on automated unit test generation with modern general-purpose large language models

  • Mar 01, 2026
  • Journal of Systems and Software
  • Jakub Walczak +2
  • Research Article

Evaluating gpt-4 for zero-shot classification of bleeding and clotting events: Can large language models serve as second reviewers?

  • Nov 03, 2025
  • Blood
  • Samantha Rizzo +5
  • Research Article

TaskEval: Assessing Difficulty of Code Generation Tasks for Large Language Models

  • Oct 28, 2025
  • ACM Transactions on Software Engineering and Methodology
  • Florian Tambon +4
  • Research Article

Enhance Multimodal Retrieval-Augmented Generation Using Multimodal Knowledge Graph

  • Dec 01, 2025
  • Emerging Science Journal
  • Shue-Kei How +2
  • Research Article

Retrieval-augmented generation in healthcare: A narrative review of methods, contributions, and future directions

  • Feb 24, 2026
  • Digital Medicine
  • Hao Kechun +1
  • Research Article

Exploration of augmented prompting methods for information extraction using large language models

  • Jan 01, 2025
  • JUSTC
  • Yishuo Fu +4
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.