mlsanityData to 14 Oct 2026

TOGLL: Correct and Strong Test Oracle Generation with LLMs

arXiv 2405.03786 ↗First posted 6 May 2024cs.SEcited by 24

Not on the map. Why?

Abstract (arXiv)

Test oracles play a crucial role in software testing, enabling effective bug detection. Despite initial promise, neural-based methods for automated test oracle generation often result in a large number of false positives and weaker test oracles. While LLMs have demonstrated impressive effectiveness in various software engineering tasks, including code generation, test case creation, and bug fixing, there remains a notable absence of large-scale studies exploring their effectiveness in test oracle generation. The question of whether LLMs can address the challenges in effective oracle generation is both compelling and requires thorough investigation. In this research, we present the first comprehensive study to investigate the capabilities of LLMs in generating correct, diverse, and strong test oracles capable of effectively identifying a large number of unique bugs. To this end, we fine-tuned seven code LLMs using six distinct prompts on the SF110 dataset. Utilizing the most effective fine-tuned LLM and prompt pair, we introduce TOGLL, a novel LLM-based method for test oracle generation. To investigate the generalizability of TOGLL, we conduct studies on 25 large-scale Java projects. Besides assessing the correctness, we also assess the diversity and strength of the generated oracles. We compare the results against EvoSuite and the state-of-the-art neural method, TOGA. Our findings reveal that TOGLL can produce 3.8 times more correct assertion oracles and 4.9 times more exception oracles. Moreover, our findings demonstrate that TOGLL is capable of generating significantly diverse test oracles. It can detect 1,023 unique bugs that EvoSuite cannot, which is ten times more than what the previous SOTA neural-based method, TOGA, can detect.

Key facts. Cited by 24 papers in the map (data through 14 Oct 2026). First posted on arXiv 6 May 2024.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 3; 2025: 9; 2026: 12.

24 papers.

Sort:

By area:

  1. 2024LeDex: Training LLMs to Better Self-Debug and Explain Codecited by 40
  2. 2024The Future of AI-Driven Software Engineeringcited by 23
  3. 2025CoCoEvo: Co-Evolution of Programs and Test Cases to Enhance Code Generationcited by 14
  4. 2025Software Development Life Cycle Perspective: A Survey of Benchmarks for Code Large Language Models and Agentscited by 11
  5. 2025TestForge: Feedback-Driven, Agentic Test Suite Generationcited by 9
  6. 2025Hallucination to Consensus: Multi-Agent LLMs for End-to-End JUnit Test Generationcited by 9
  7. 2026Code-A1: Adversarial Evolving of Code LLM and Test LLM via Reinforcement Learningcited by 8
  8. 2024Generating executable oracles to check conformance of client code to requirements of JDK Javadocs using LLMscited by 6
  9. 2025Beyond Postconditions: Can Large Language Models infer Formal Contracts for Automatic Software Verification?cited by 6
  10. 2025Nexus: Execution-Grounded Multi-Agent Test Oracle Synthesiscited by 4
  11. 2025Navigating the growing field of research on AI for software testing -- the taxonomy for AI-augmented software testing and an ontology-driven literature surveycited by 2
  12. 2025Large Language Models for Software Testing: A Research Roadmapcited by 2
12 more
  1. 2026Understanding LLM-Driven Test Oracle Generationcited by 2
  2. 2026Judging Is Not Enumerating: Silent Omissions in LLM-Authored Acceptable Setscited by 2
  3. 2025Harden and Catch for Just-in-Time Assured LLM-Based Software Testing: Open Research Challengescited by 1
  4. 2026Just-in-Time Catching Test Generation at Metacited by 1
  5. 2026Self-Improving Code Generation via Semantic Entropy and Behavioral Consensuscited by 1
  6. 2026MANGO: Automated Multi-Agent Test Oracle Generation for Vision-Language-Action Modelscited by 1
  7. 2026Inferring Code Correctness from Specificationcited by 0
  8. 2026Multi-Large Language Model Orchestrated Severity Assessment of Clinical Records (MOSAIC)cited by 0
  9. 2026Rethinking Code Performance Benchmarks for LLMscited by 0
  10. 2026Fail-Aware and Explainable Test Oracle Predictioncited by 0
  11. 2026Evaluating and Mitigating the Misguidance Effect of Buggy Code in LLM-Generated Unit Testscited by 0
  12. 2026Agent-Based Test Assertion Generation via Diverse Perspective Aggregationcited by 0