Understanding LLM-Driven Test Oracle Generation
Not on the map. Why?
Abstract (arXiv)
Automated unit test generation aims to improve software quality while reducing the time and effort required for creating tests manually. However, existing techniques primarily generate regression oracles that predicate on the implemented behavior of the class under test. They do not address the oracle problem: the challenge of distinguishing correct from incorrect program behavior. With the rise of Foundation Models (FMs), particularly Large Language Models (LLMs), there is a new opportunity to generate test oracles that reflect intended behavior. This positions LLMs as enablers of Promptware, where software creation and testing are driven by natural-language prompts. This paper presents an empirical study on the effectiveness of LLMs in generating test oracles that expose software failures. We investigate how different prompting strategies and levels of contextual input impact the quality of LLM-generated oracles. Our findings offer insights into the strengths and limitations of LLM-based oracle generation in the FM era, improving our understanding of their capabilities and fostering future research in this area.
Key facts. Cited by 2 papers in the map (data through 13 Oct 2026). Builds on 29 of its 49 references that are in the map. First posted on arXiv 9 Jan 2026.
Builds on
29 of 49 references.
References · 29
- 2020Language Models are Few-Shot Learnerscited by 32,320
- 2023GPT-4 Technical Reportcited by 18,278
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,376
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,348
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,181
- 2023StarCoder: may the source be with you!cited by 797
- 2024A Survey on Large Language Models for Code Generationcited by 656
- 2023An Empirical Evaluation of Using Large Language Models for Automated Unit Test Generationcited by 194
- 2023Software Testing with Large Language Models: Survey, Landscape, and Visioncited by 164
- 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
- 2024Code-Aware Prompting: A study of Coverage Guided Test Generation in Regression Setting using LLMcited by 64
17 more
- 2021TOGA: A Neural Method for Test Oracle Generationcited by 57
- 2020On Learning Meaningful Assert Statements for Unit Test Casescited by 42
- 2024On the Evaluation of Large Language Models in Unit Test Generationcited by 34
- 2020Generating Accurate Assert Statements for Unit Test Cases using Pretrained Transformerscited by 30
- 2024TOGLL: Correct and Strong Test Oracle Generation with LLMscited by 24
- 2024The Future of AI-Driven Software Engineeringcited by 23
- 2025Metamorphic Testing of Large Language Models for Natural Language Processingcited by 12
- 2023The Program Testing Ability of Large Language Models for Codecited by 11
- 2024Test Oracle Automation in the era of LLMscited by 11
- 2024Do LLMs generate test oracles that capture the actual or the expected program behaviour?cited by 11
- 2024Doc2OracLL: Investigating the Impact of Documentation on LLM-based Test Oracle Generationcited by 10
- 2023Neural-Based Test Oracle Generation: A Large-scale Evaluation and Lessons Learnedcited by 9
- 2023Towards More Realistic Evaluation for Neural Test Oracle Generationcited by 8
- 2024A System for Automated Unit Test Generation Using Large Language Models and Assessment of Generated Test Suitescited by 8
- 2023Assessing Evaluation Metrics for Neural Test Oracle Generationcited by 7
- 2023The GitHub Recent Bugs Dataset for Evaluating LLM-based Debugging Applicationscited by 6
- 2025AugmenTest: Enhancing Tests with LLM-Driven Oraclescited by 4
Built on by
Citing papers per year: 2026: 2.
2 papers.