Issue2Test: Generating Reproducing Test Cases from Issue Reports
Noor Nashid, Islem Bouzenia, Michael Pradel, Ali Mesbah
摘要
Automated tools for solving GitHub issues are receiving significant attention by both researchers and practitioners, e.g., in the form of foundation models and LLM-based agents prompted with issues. A crucial step toward successfully solving an issue is creating a test case that accurately reproduces the issue. Such a test case can guide the search for an appropriate patch and help validate whether the patch matches the issue’s intent. However, existing techniques for issue reproduction show only moderate success. This paper presents Issue2Test, an LLM-based technique for automatically generating a reproducing test case for a given issue report. Unlike automated regression test generators, which aim at creating passing tests, our approach aims at a test that fails, and that fails specifically for the reason described in the issue. To this end, Issue2Test performs three steps: (1) understand the issue and gather context (e.g., related files and project-specific guidelines) relevant for reproducing it; (2) generate a candidate test case; and (3) iteratively refine the test case based on compilation and runtime feedback until it fails and the failure aligns with the problem described in the issue. We evaluate Issue2Test on the SWT-bench-lite dataset, where it successfully reproduces 32.9% of the issues, achieving a 16.3% relative improvement over the best existing technique. Our evaluation also shows that Issue2Test reproduces 20 issues that four prior techniques fail to address, contributing a total of 60.4% of all issues reproduced by these tools. We envision our approach to contribute to enhancing the overall progress in the important task of automatically solving GitHub issues.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 11 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Understanding Software Engineering Agents: A Study of Thought-Action-Result Trajectories 引用了 CodaMosa: Escaping Coverage Plateaus in Test Generation with Pre-trained Large Language Models
- Understanding Software Engineering Agents: A Study of Thought-Action-Result Trajectories 引用了 MAGIS: LLM-Based Multi-Agent Framework for GitHub Issue Resolution
- Understanding Software Engineering Agents: A Study of Thought-Action-Result Trajectories 引用了 SWE-bench: Can Language Models Resolve Real-world Github Issues?
- Characterizing Multi-Hunk Patches: Divergence, Proximity, and LLM Repair Challenges 引用了 Less training, more repairing please: revisiting automated program repair via zero-shot learning
- Characterizing Multi-Hunk Patches: Divergence, Proximity, and LLM Repair Challenges 引用了 Automated Repair of Programs from Large Language Models
- MAGIS: LLM-Based Multi-Agent Framework for GitHub Issue Resolution 引用了 SWE-bench: Can Language Models Resolve Real-world Github Issues?
- SWE-bench: Can Language Models Resolve Real-world Github Issues? 引用了 Less training, more repairing please: revisiting automated program repair via zero-shot learning
- SWE-bench: Can Language Models Resolve Real-world Github Issues? 引用了 Automated Repair of Programs from Large Language Models
- Are “Solved Issues” in SWE-bench Really Solved Correctly? An Empirical Study 引用了 Understanding Software Engineering Agents: A Study of Thought-Action-Result Trajectories
- Are “Solved Issues” in SWE-bench Really Solved Correctly? An Empirical Study 引用了 SWE-bench: Can Language Models Resolve Real-world Github Issues?
- TestExplora: Benchmarking LLMs for Proactive Bug Discovery via Repository-Level Test Generation 引用了 SWE-bench: Can Language Models Resolve Real-world Github Issues?
- Heterogeneous Prompting and Execution Feedback for SWE Issue Test Generation and Selection 引用了 SWE-bench: Can Language Models Resolve Real-world Github Issues?
引用它的顶会 Paper11
- TestExplora: Benchmarking LLMs for Proactive Bug Discovery via Repository-Level Test GenerationSteven Liu, Jane Luo, Xin Zhang, Aofan Liu 等ICML 2026 · 4 次引用
- Understanding Software Engineering Agents: A Study of Thought-Action-Result TrajectoriesIslem Bouzenia, Michael PradelASE 2025 · 3 次引用
- Are “Solved Issues” in SWE-bench Really Solved Correctly? An Empirical StudyYou Wang, Michael Pradel, Zhongxin LiuICSE 2026 · 2 次引用
- Heterogeneous Prompting and Execution Feedback for SWE Issue Test Generation and SelectionToufique Ahmed, Jatin Ganhotra, Avraham Shinnar, Martin HirzelICSE 2026 · 2 次引用
- Characterizing Multi-Hunk Patches: Divergence, Proximity, and LLM Repair ChallengesNoor Nashid, Daniel Ding, Keheliya Gallaba, Ahmed E. Hassan 等ASE 2025 · 1 次引用
它引用的 Paper22
- SWE-bench: Can Language Models Resolve Real-world Github Issues?Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao 等ICLR 2024 · 2,082 次引用
- Less training, more repairing please: revisiting automated program repair via zero-shot learningChunqiu Steven Xia, Lingming ZhangFSE 2022 · 223 次引用
- CodaMosa: Escaping Coverage Plateaus in Test Generation with Pre-trained Large Language ModelsCaroline Lemieux, Jeevana Priya Inala, Shuvendu K. Lahiri, Siddhartha SenICSE 2023 · 221 次引用
- Automated Repair of Programs from Large Language ModelsZhiyu Fan, Xiang Gao, Martin Mirchev, Abhik Roychoudhury 等ICSE 2023 · 213 次引用
- MAGIS: LLM-Based Multi-Agent Framework for GitHub Issue ResolutionWei Tao, Yucheng Zhou, Yanlin Wang, Wenqiang Zhang 等NeurIPS 2024 · 210 次引用
相关 Paper
- Automated Generation of Issue-Reproducing Tests by Combining LLMs and Search-Based TestingKonstantinos Kitsios, Marco Castelluccio, Alberto BacchelliASE 2025 · 1 次引用
- iCoRe: An Iterative Correlation-Aware Retriever for Bug Reproduction Test GenerationJunyi Wang, Jialun Cao, Zhongxin LiuFSE 2026
- AssertFlip: Reproducing Bugs via Inversion of LLM-Generated Passing TestsLara Khatib, Noble Saji Mathews, Meiyappan NagappanICSE 2026 · 1 次引用
- SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code AgentsNiels Mündler, Mark Niklas Müller, Jingxuan He, Martin T. VechevNeurIPS 2024 · 172 次引用
- Enhancing Issue Localization Agent with Tool-Interactive TrainingZexiong Ma, Chao Peng, Qunhong Zeng, Pengfei Gao 等ICSE 2026
