From Code Generation to Software Testing: AI Copilot with Context-Based RAG
Not on the map. Why?
Abstract (arXiv)
The rapid pace of large-scale software development places increasing demands on traditional testing methodologies, often leading to bottlenecks in efficiency, accuracy, and coverage. We propose a novel perspective on software testing by positing bug detection and coding with fewer bugs as two interconnected problems that share a common goal, which is reducing bugs with limited resources. We extend our previous work on AI-assisted programming, which supports code auto-completion and chatbot-powered Q&A, to the realm of software testing. We introduce Copilot for Testing, an automated testing system that synchronizes bug detection with codebase updates, leveraging context-based Retrieval Augmented Generation (RAG) to enhance the capabilities of large language models (LLMs). Our evaluation demonstrates a 31.2% improvement in bug detection accuracy, a 12.6% increase in critical test coverage, and a 10.5% higher user acceptance rate, highlighting the transformative potential of AI-driven technologies in modern software development practices.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 9 of its 16 references that are in the map. First posted on arXiv 2 Apr 2025.
Builds on
9 of 16 references.
References · 9
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2022Prompting Is Programming: A Query Language for Large Language Modelscited by 110
- 2023Navigating the Complexity of Generative AI Adoption in Software Engineeringcited by 32
- 2023Copilot for Xcode: Exploring AI-Assisted Programming by Prompting Cloud-based Large Language Modelscited by 11
- 2018Ways of Applying Artificial Intelligence in Software Engineeringcited by 7
- 2025Aligning Crowd-sourced Human Feedback for Reinforcement Learning on Code Generation by Large Language Modelscited by 3
- 2021Defect Prediction Guided Search-Based Software Testingcited by 2
- 2024A Multi-Year Grey Literature Review on AI-assisted Test Automationcited by 2
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2026Enhancing Large Language Models with Retrieval Augmented Generation for Software Testing and Inspection Automation
- 2024SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agents
- 2025AugmenTest: Enhancing Tests with LLM-Driven Oracles
- 2026Grounding AI Agents in Contracts: An Empirical Evaluation of Spec-Driven Test Generation
- 2025Enhancing LLM Code Generation: A Systematic Evaluation of Multi-Agent Collaboration and Runtime Debugging for Improved Accuracy, Reliability, and Latency
- 2024Retrieval-Augmented Test Generation: How Far Are We?
- 2025Meta-RAG on Large Codebases Using Code Summarization
- 2026Test-Oriented Programming: rethinking coding for the GenAI era