paper-with-me

Papers

A System for Automated Unit Test Generation Using Large Language Models and Assessment of Generated Test Suites

2024-08-14 · Andrea Lops, Fedelucio Narducci, Azzurra Ragone, Michelantonio Trizio, Claudio Bartolini

Unit tests represent the most basic level of testing within the software testing lifecycle and are crucial to ensuring software correctness. Designing and creating unit tests is a costly and labor-intensive process that is ripe for automation. Recently, Large Language Models (LLMs) have been applied to various aspects of software development, including unit test generation. Although several empirical studies evaluating LLMs' capabilities in test code generation exist, they primarily focus on simple scenarios, such as the straightforward generation of unit tests for individual methods. These evaluations often involve independent and small-scale test units, providing a limited view of LLMs' performance in real-world software development scenarios. Moreover, previous studies do not approach the problem at a suitable scale for real-life applications. Generated unit tests are often evaluated via manual integration into the original projects, a process that limits the number of tests executed and reduces overall efficiency. To address these gaps, we have developed an approach for generating and evaluating more real-life complexity test suites. Our approach focuses on class-level test code generation and automates the entire process from test generation to test assessment. In this work, we present AgoneTest: an automated system for generating test suites for Java projects and a comprehensive and principled methodology for evaluating the generated test suites. Starting from a state-of-the-art dataset (i.e., Methods2Test), we built a new dataset for comparing human-written tests with those generated by LLMs. Our key contributions include a scalable automated software system, a new dataset, and a detailed methodology for evaluating test quality.

📄 PDF Abstract BibTeX arXiv:2408.07846

Code (0)

등록된 구현이 없습니다.

Tasks

Code Generationsoftware testing

Methods 이 논문이 사용한 방법론

Focus 설명 없음

Similar Papers 제목 키워드 기반

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

2025-02-20 · Junwei Zhang, Xing Hu, Shan Gao, Xin Xia 외

Unit testing is crucial for software development and maintenance. Effective unit testing ensures and improves software quality, but writing unit tests is time-consuming and labor-intensive. Recent studies have proposed d…

LLMs for Automated Unit Test Generation and Assessment in Java: The AgoneTest Framework

2025-11-25 · Andrea Lops, Fedelucio Narducci, Azzurra Ragone, Michelantonio Trizio 외 arxiv

Unit testing is an essential but resource-intensive step in software development, ensuring individual code units function correctly. This paper introduces AgoneTest, an automated evaluation framework for Large Language M…

Prompt Engineering

Harnessing the Power of LLMs: Automating Unit Test Generation for High-Performance Computing

2024-07-06 · Rabimba Karanjai, Aftab Hussain, Md Rafiqul Islam Rabin, Lei Xu 외

Unit testing is crucial in software engineering for ensuring quality. However, it's not widely used in parallel and high-performance computing software, particularly scientific applications, due to their smaller, diverse…

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

2023-02-13 · Max Schäfer, Sarah Nadi, Aryaz Eghbali, Frank Tip

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 t…

Few-Shot LearningLanguage ModellingLarge Language Model

TAM-Eval: Evaluating LLMs for Automated Unit Test Maintenance

2026-01-26 · Elena Bruches, Vadim Alperovich, Dari Baturova, Roman Derunets 외 arxiv

While Large Language Models (LLMs) have shown promise in software engineering, their application to unit testing remains largely confined to isolated test generation or oracle prediction, neglecting the broader challenge…