LLMs for Automated Unit Test Generation and Assessment in Java: The AgoneTest Framework
Not on the map. Why?
Abstract (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 Model-generated (LLM) unit tests in Java. AgoneTest does not aim to propose a novel test generation algorithm; rather, it supports researchers and developers in comparing different LLMs and prompting strategies through a standardized end-to-end evaluation pipeline under realistic conditions. We introduce the Classes2Test dataset, which maps Java classes under test to their corresponding test classes, and a framework that integrates advanced evaluation metrics, such as mutation score and test smells, for a comprehensive assessment. Experimental results show that, for the subset of tests that compile, LLM-generated tests can match or exceed human-written tests in terms of coverage and defect detection. Our findings also demonstrate that enhanced prompting strategies contribute to test quality. AgoneTest clarifies the potential of LLMs in software testing and offers insights for future improvements in model design, prompt engineering, and testing practices.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 23 of its 48 references that are in the map. First posted on arXiv 25 Nov 2025.
Builds on
23 of 48 references.
References · 23
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2024A Systematic Survey of Prompt Engineering in Large Language Models: Techniques and Applicationscited by 428
- 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 193
- 2020Unit Test Case Generation with Transformers and Focal Contextcited by 118
- 2022Large Language Models are Zero-Shot Fuzzers: Fuzzing Deep-Learning Libraries via Large Language Modelscited by 102
- 2023ChatUniTest: A Framework for LLM-Based Test Generationcited by 94
- 2023Fuzz4All: Universal Fuzzing with Large Language Modelscited by 88
- 2023No More Manual Tests? Evaluating and Improving ChatGPT for Unit Test Generationcited by 82
- 2024Automated Unit Test Improvement using Large Language Models at Metacited by 73
- 2023Using Large Language Models to Generate JUnit Tests: An Empirical Studycited by 53
- 2023Effective Test Generation Using Pre-trained Large Language Models and Mutation Testingcited by 51
11 more
- 2024TestGenEval: A Real World Unit Test Generation and Test Completion Benchmarkcited by 49
- 2023A3Test: Assertion-Augmented Automated Test Case Generationcited by 33
- 2023ChatGPT vs SBST: A Comparative Assessment of Unit Test Suite Generationcited by 32
- 2023Learning Deep Semantics for Test Completioncited by 31
- 2024TestBench: Evaluating Class-Level Test Case Generation Capability of Large Language Modelscited by 15
- 2022Methods2Test: A dataset of focal methods mapped to test casescited by 10
- 2024WebApp1K: A Practical Code-Generation Benchmark for Web App Developmentcited by 10
- 2024TestSpark: IntelliJ IDEA's Ultimate Test Generation Companioncited by 9
- 2022Basic Block Coverage for Search-based Unit Testing and Crash Reproductioncited by 4
- 2025MultiFileTest: A Multi-File-Level LLM Unit Test Generation Benchmark and Impact of Error Fixing Mechanismscited by 4
- 2021JUGE: An Infrastructure for Benchmarking Java Unit Test Generatorscited by 2
Built on by
Citing papers per year: 2026: 1.
1 paper.