Using Machine Learning to Generate Test Oracles: A Systematic Literature Review
Not on the map. Why?
Abstract (arXiv)
Machine learning may enable the automated generation of test oracles. We have characterized emerging research in this area through a systematic literature review examining oracle types, researcher goals, the ML techniques applied, how the generation process was assessed, and the open research challenges in this emerging field. Based on a sample of 22 relevant studies, we observed that ML algorithms generated test verdict, metamorphic relation, and - most commonly - expected output oracles. Almost all studies employ a supervised or semi-supervised approach, trained on labeled system executions or code metadata - including neural networks, support vector machines, adaptive boosting, and decision trees. Oracles are evaluated using the mutation score, correct classifications, accuracy, and ROC. Work-to-date show great promise, but there are significant open challenges regarding the requirements imposed on training data, the complexity of modeled functions, the ML algorithms employed - and how they are applied - the benchmarks used by researchers, and replicability of the studies. We hope that our findings will serve as a roadmap and inspiration for researchers in this field.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). First posted on arXiv 2 Jul 2021.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 1; 2023: 1; 2024: 1; 2025: 1; 2026: 1.
7 papers.
- 2024Generating executable oracles to check conformance of client code to requirements of JDK Javadocs using LLMscited by 6
- 2023Fault Localization for Buggy Deep Learning Framework Conversions in Image Recognitioncited by 2
- 2022The Integration of Machine Learning into Automated Test Generation: A Systematic Mapping Studycited by 1
- 2025Automated Unit Test Case Generation: A Systematic Literature Reviewcited by 1
- 2026Learning Correct Behavior from Examples: Validating Sequential Execution in Autonomous Agentscited by 1
- 2021Mapping the Structure and Evolution of Software Testing Research Over the Past Three Decadescited by 0
- 2021Automated Support for Unit Test Generation: A Tutorial Book Chaptercited by 0
- 2026Learning Correct Behavior from Examples: Validating Sequential Execution in Autonomous Agents4 May 2026
- 2025Automated Unit Test Case Generation: A Systematic Literature Review29 Apr 2025
- 2024Generating executable oracles to check conformance of client code to requirements of JDK Javadocs using LLMs4 Nov 2024
- 2023Fault Localization for Buggy Deep Learning Framework Conversions in Image Recognition10 Jun 2023
- 2022The Integration of Machine Learning into Automated Test Generation: A Systematic Mapping Study21 Jun 2022
- 2021Automated Support for Unit Test Generation: A Tutorial Book Chapter26 Oct 2021
- 2021Mapping the Structure and Evolution of Software Testing Research Over the Past Three Decades9 Sep 2021