Lune

ICSE2026Top-tier venue

Issue2Test: Generating Reproducing Test Cases from Issue Reports

Noor Nashid, Islem Bouzenia, Michael Pradel, Ali Mesbah

Abstract

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.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

10 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Understanding Software Engineering Agents: A Study of Thought-Action-Result Trajectories cites CodaMosa: Escaping Coverage Plateaus in Test Generation with Pre-trained Large Language Models
  • Understanding Software Engineering Agents: A Study of Thought-Action-Result Trajectories cites MAGIS: LLM-Based Multi-Agent Framework for GitHub Issue Resolution
  • Understanding Software Engineering Agents: A Study of Thought-Action-Result Trajectories cites SWE-bench: Can Language Models Resolve Real-world Github Issues?
  • Characterizing Multi-Hunk Patches: Divergence, Proximity, and LLM Repair Challenges cites Less training, more repairing please: revisiting automated program repair via zero-shot learning
  • Characterizing Multi-Hunk Patches: Divergence, Proximity, and LLM Repair Challenges cites Automated Repair of Programs from Large Language Models
  • MAGIS: LLM-Based Multi-Agent Framework for GitHub Issue Resolution cites SWE-bench: Can Language Models Resolve Real-world Github Issues?
  • SWE-bench: Can Language Models Resolve Real-world Github Issues? cites Less training, more repairing please: revisiting automated program repair via zero-shot learning
  • SWE-bench: Can Language Models Resolve Real-world Github Issues? cites Automated Repair of Programs from Large Language Models
  • Are “Solved Issues” in SWE-bench Really Solved Correctly? An Empirical Study cites Understanding Software Engineering Agents: A Study of Thought-Action-Result Trajectories
  • Are “Solved Issues” in SWE-bench Really Solved Correctly? An Empirical Study cites SWE-bench: Can Language Models Resolve Real-world Github Issues?
  • TestExplora: Benchmarking LLMs for Proactive Bug Discovery via Repository-Level Test Generation cites SWE-bench: Can Language Models Resolve Real-world Github Issues?
  • Heterogeneous Prompting and Execution Feedback for SWE Issue Test Generation and Selection cites SWE-bench: Can Language Models Resolve Real-world Github Issues?
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers10

  1. TestExplora: Benchmarking LLMs for Proactive Bug Discovery via Repository-Level Test GenerationSteven Liu, Jane Luo, Xin Zhang, Aofan Liu et al.ICML 2026 · 4 citations
  2. Understanding Software Engineering Agents: A Study of Thought-Action-Result TrajectoriesIslem Bouzenia, Michael PradelASE 2025 · 3 citations
  3. Are “Solved Issues” in SWE-bench Really Solved Correctly? An Empirical StudyYou Wang, Michael Pradel, Zhongxin LiuICSE 2026 · 2 citations
  4. Heterogeneous Prompting and Execution Feedback for SWE Issue Test Generation and SelectionToufique Ahmed, Jatin Ganhotra, Avraham Shinnar, Martin HirzelICSE 2026 · 2 citations
  5. Characterizing Multi-Hunk Patches: Divergence, Proximity, and LLM Repair ChallengesNoor Nashid, Daniel Ding, Keheliya Gallaba, Ahmed E. Hassan et al.ASE 2025 · 1 citation

Builds on22

  1. SWE-bench: Can Language Models Resolve Real-world Github Issues?Carlos E. Jimenez, John Yang, Alexander Wettig, Shunyu Yao et al.ICLR 2024 · 2,082 citations
  2. Less training, more repairing please: revisiting automated program repair via zero-shot learningChunqiu Steven Xia, Lingming ZhangFSE 2022 · 223 citations
  3. CodaMosa: Escaping Coverage Plateaus in Test Generation with Pre-trained Large Language ModelsCaroline Lemieux, Jeevana Priya Inala, Shuvendu K. Lahiri, Siddhartha SenICSE 2023 · 221 citations
  4. Automated Repair of Programs from Large Language ModelsZhiyu Fan, Xiang Gao, Martin Mirchev, Abhik Roychoudhury et al.ICSE 2023 · 213 citations
  5. MAGIS: LLM-Based Multi-Agent Framework for GitHub Issue ResolutionWei Tao, Yucheng Zhou, Yanlin Wang, Wenqiang Zhang et al.NeurIPS 2024 · 210 citations

Related papers

  1. Automated Generation of Issue-Reproducing Tests by Combining LLMs and Search-Based TestingKonstantinos Kitsios, Marco Castelluccio, Alberto BacchelliASE 2025 · 1 citation
  2. iCoRe: An Iterative Correlation-Aware Retriever for Bug Reproduction Test GenerationJunyi Wang, Jialun Cao, Zhongxin LiuFSE 2026
  3. AssertFlip: Reproducing Bugs via Inversion of LLM-Generated Passing TestsLara Khatib, Noble Saji Mathews, Meiyappan NagappanICSE 2026 · 1 citation
  4. 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 citations
  5. Enhancing Issue Localization Agent with Tool-Interactive TrainingZexiong Ma, Chao Peng, Qunhong Zeng, Pengfei Gao et al.ICSE 2026
Dusk over the sea between two cliffs drawn in fine vertical lines