cs.SEJan 20, 2026

SWE-Tester: Training Open-Source LLMs for Issue Reproduction in Real-World Repositories

Authors: Aditya Bharat SoniRajat GhoshVaishnavi BhargavaValerie ChenDebojyoti Dutta

Organizations: Carnegie Mellon University · Nutanix · Stanford University

Abstract

Software testing is crucial for ensuring the correctness and reliability of software systems. Automated generation of issue reproduction tests from natural language issue descriptions enhances developer productivity by simplifying root cause analysis, promotes test-driven development -- "test first, write code later", and can be used for improving the effectiveness of automated issue resolution systems like coding agents. Existing methods proposed for this task predominantly rely on closed-source LLMs, with limited exploration of open models. To address this, we propose SWE-Tester -- a novel pipeline for training open-source LLMs to generate issue reproduction tests. First, we curate a high-quality training dataset of 41K instances from 2.6K open-source GitHub repositories and use it to train LLMs of varying sizes and families. The fine-tuned models achieve absolute improvements of up to 10% in success rate and 21% in change coverage on SWT-Bench Verified. Further analysis shows consistent improvements with increased inference-time compute, more data, and larger models. These results highlight the effectiveness of our framework for advancing open-source LLMs in this domain.

Explore similar work

CardsList
  1. Evaluating LLM-Based Regression Test Generation

    Jan 19, 2025Jing Liu, Seongmin Lee, Eleonora Losiouk +1Test GenerationCommits