AugmenTest: Enhancing Tests with LLM-Driven Oracles
Not on the map. Why?
Abstract (arXiv)
Automated test generation is crucial for ensuring the reliability and robustness of software applications while at the same time reducing the effort needed. While significant progress has been made in test generation research, generating valid test oracles still remains an open problem. To address this challenge, we present AugmenTest, an approach leveraging Large Language Models (LLMs) to infer correct test oracles based on available documentation of the software under test. Unlike most existing methods that rely on code, AugmenTest utilizes the semantic capabilities of LLMs to infer the intended behavior of a method from documentation and developer comments, without looking at the code. AugmenTest includes four variants: Simple Prompt, Extended Prompt, RAG with a generic prompt (without the context of class or method under test), and RAG with Simple Prompt, each offering different levels of contextual information to the LLMs. To evaluate our work, we selected 142 Java classes and generated multiple mutants for each. We then generated tests from these mutants, focusing only on tests that passed on the mutant but failed on the original class, to ensure that the tests effectively captured bugs. This resulted in 203 unique tests with distinct bugs, which were then used to evaluate AugmenTest. Results show that in the most conservative scenario, AugmenTest's Extended Prompt consistently outperformed the Simple Prompt, achieving a success rate of 30% for generating correct assertions. In comparison, the state-of-the-art TOGA approach achieved 8.2%. Contrary to our expectations, the RAG-based approaches did not lead to improvements, with performance of 18.2% success rate for the most conservative scenario.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). First posted on arXiv 29 Jan 2025.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 1; 2026: 3.
4 papers.
- 2025Large Language Models for Software Testing: A Research Roadmapcited by 2
- 2026Understanding LLM-Driven Test Oracle Generationcited by 2
- 2026MANGO: Automated Multi-Agent Test Oracle Generation for Vision-Language-Action Modelscited by 1
- 2026Multi-Large Language Model Orchestrated Severity Assessment of Clinical Records (MOSAIC)cited by 0
- 2026Multi-Large Language Model Orchestrated Severity Assessment of Clinical Records (MOSAIC)6 Jul 2026
- 2026MANGO: Automated Multi-Agent Test Oracle Generation for Vision-Language-Action Models23 Jun 2026
- 2026Understanding LLM-Driven Test Oracle Generation9 Jan 2026
- 2025Large Language Models for Software Testing: A Research Roadmap29 Sep 2025
Similar, not cited
Close in wording, no citation either way
- 2025Hallucination to Consensus: Multi-Agent LLMs for End-to-End JUnit Test Generation
- 2026TAM-Eval: Evaluating LLMs for Automated Unit Test Maintenance
- 2024LLM-based Unit Test Generation via Property Retrieval
- 2026TestExplora: Benchmarking LLMs for Proactive Bug Discovery via Repository-Level Test Generation
- 2024Large-scale, Independent and Comprehensive study of the power of LLMs for test case generation
- 2025TestForge: Feedback-Driven, Agentic Test Suite Generation
- 2026SWE-Mutation: Can LLMs Generate Reliable Test Suites in Software Engineering?
- 2026Enhancing Large Language Models with Retrieval Augmented Generation for Software Testing and Inspection Automation