AugmenTest: Enhancing Tests with LLM-Driven Oracles
Shaker Mahmud Khandaker, Fitsum Kifetew, Davide Prandi, Angelo Susi

TL;DR
AugmenTest leverages Large Language Models to generate accurate test oracles from software documentation, significantly improving test correctness over existing methods by inferring intended behavior without analyzing code.
Contribution
This paper introduces AugmenTest, a novel LLM-based approach for inferring test oracles from documentation, outperforming prior code-dependent methods in test generation accuracy.
Findings
Extended Prompt variant achieved 30% success rate in generating correct assertions.
AugmenTest outperformed the state-of-the-art TOGA approach, which had 8.2% success.
RAG-based approaches did not improve performance as expected.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsDigital and Cyber Forensics · Digital Rights Management and Security
