Can Old Tests Do New Tricks for Resolving SWE Issues?
Not on the map. Why?
Abstract (arXiv)
Test suites in real-world projects are often large and achieve high code coverage, yet they remain insufficient for detecting all bugs. The abundance of unresolved issues in open-source project trackers highlights this gap. While regression tests are typically designed to ensure past functionality is preserved in the new version, they can also serve a complementary purpose: debugging the current version. Specifically, regression tests can (1) enhance the generation of reproduction tests for newly reported issues, and (2) validate that patches do not regress existing functionality. We present TestPrune, a fully automated technique that leverages issue tracker reports and strategically reuses regression tests for both bug reproduction and patch validation. A key contribution of TestPrune is its ability to automatically minimize the regression suite to a small, highly relevant subset of tests. Due to the predominance of LLM-based debugging techniques, this minimization is essential as large test suites exceed context limits, introduce noise, and inflate inference costs. TestPrune can be plugged into any agentic bug repair pipeline and orthogonally improve overall performance. As a proof of concept, we show that TestPrune leads to a 6.2%-9.0% relative increase in issue reproduction rate within the Otter framework and a 8.0%-12.9% relative increase in issue resolution rate within Agentless, SWE-Agent, and Trae agent on SWE-Bench Lite and SWE-Bench Verified benchmarks. Compared to the benefits, the model API cost overhead of TestPrune is minimal, at 0.02 and 0.05 per SWE-Bench instance using GPT-4o and Claude-3.7-Sonnet models, respectively.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). First posted on arXiv 21 Oct 2025.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 2; 2026: 5.
7 papers.
- 2025Investigating Test Overfitting on SWE-benchcited by 6
- 2025Agentic Software Issue Resolution with Large Language Models: A Surveycited by 6
- 2026From Plan to Action: How Well Do Agents Follow the Plan?cited by 4
- 2026ExecCritic: Learn to Test, Test to Improve for Coding Agentscited by 3
- 2026ReCodeAgent: A Multi-agent Workflow for Language-Agnostic Translation and Validation of Large-Scale Repositoriescited by 2
- 2026SkillForge: Self-Distilling Agents for Project-Specific Issue Resolutioncited by 2
- 2026Unlocking Model Potentials Through Adaptive Multi-Agent Scaffolding for Efficient Issue Resolutioncited by 1
- 2026ExecCritic: Learn to Test, Test to Improve for Coding Agents8 Sep 2026
- 2026SkillForge: Self-Distilling Agents for Project-Specific Issue Resolution19 Aug 2026
- 2026Unlocking Model Potentials Through Adaptive Multi-Agent Scaffolding for Efficient Issue Resolution24 Jun 2026
- 2026From Plan to Action: How Well Do Agents Follow the Plan?13 Apr 2026
- 2026ReCodeAgent: A Multi-agent Workflow for Language-Agnostic Translation and Validation of Large-Scale Repositories8 Apr 2026
- 2025Agentic Software Issue Resolution with Large Language Models: A Survey24 Dec 2025
- 2025Investigating Test Overfitting on SWE-bench20 Nov 2025
Similar, not cited
Close in wording, no citation either way
- 2026SWEPatchTest: Evaluating Software Tests Beyond Reproduction
- 2026SWE-Doctor: Guiding Software Engineering Agents with Runtime Diagnosis from Multi-Faceted Bug Reproduction Tests
- 2025Agentic Bug Reproduction for Effective Automated Program Repair at Google
- 2026TestExplora: Benchmarking LLMs for Proactive Bug Discovery via Repository-Level Test Generation
- 2026ReProAgent: Tool-Augmented Multi-Stage Agentic Generation of Bug Reproduction Tests from Issue Reports
- 2024SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agents
- 2026Dynamic Cogeneration of Bug Reproduction Test in Agentic Program Repair
- 2026Breaking, Stale, or Missing? Benchmarking Coding Agents on Project-Level Test Evolution