SWEPatchTest: Evaluating Software Tests Beyond Reproduction

Hua Lu, Pengcheng Wang, Han Li, Zichen Tian, Yanyu Chen +2 more
10/13/2026
cs.SEcs.AI

No confident code implementation found for this paper.

Abstract

Coding agents use generated tests to decide whether a proposed patch satisfies an issue's requirements. A suite that fails on the buggy program and passes after applying the reference patch can still accept an incorrect patch or reject a correct patch.

Show full abstract

We introduce SWEPATCHTEST, a test-generation benchmark with 619 tasks from SWE-bench Pro, SWE-bench Multilingual, and DeepSWE and 82,579 candidate patches collected from coding-agent trajectories. By replaying each suite on the buggy and patched codebases, \benchmark jointly measures issue reproduction, acceptance of correct patches, and rejection of incorrect patches. Joint Validation Rate (JVR), which requires all three criteria on the same task, exposes failures hidden by single-reference evaluation: the best-performing configuration achieves only 9.21% JVR despite reproducing the reference transition on 59.29% of tasks. We further use validation scores to select and scale demonstrations for supervised fine-tuning (SFT). The resulting training recipe approximately triples JVR and improves downstream repair across three SWE-bench benchmarks. Patch discrimination thus provides both a diagnostic measure of test quality and an execution-based signal for curating agent training data.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{lu2026swepatchtest,
  title  = {SWEPatchTest: Evaluating Software Tests Beyond Reproduction},
  author = {Hua Lu and Pengcheng Wang and Han Li and Zichen Tian and Yanyu Chen and Huang He and Bingjin Chen},
  year   = {2026},
  eprint = {2610.18004},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.18004v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.18004.svg)](https://codeofpaper.com/paper/2610.18004)

Discussion