arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.04320cs.SE
收藏

Java SWE问题的再现测试生成

Reproduction Test Generation for Java SWE Issues

IBM

Toufique Ahmed, Jatin Ganhotra, Avraham Shinnar, Martin Hirzel

AI总结:

本文针对Java企业软件中的SWE问题,提出首个Java仓库级再现测试基准TDD-Bench-Java和高绩效的e-Otter++工具,填补了Python以外语言的研究空白。

摘要:

给定软件仓库中的一个问题,再现测试在修复前确认其存在,在修复后确认其不存在。再现测试为软件开发中的诊断和验证提供关键的执行反馈。然而,这些测试通常缺失。因此,近期工作引入了基准和解决方案文献,但主要集中在Python上,忽视了如Java这样的企业级语言。本文引入了Java仓库级再现测试的基准和解决方案。基准TDD-Bench-Java是首个建模该问题的,包含250个来自流行开源仓库的实例。解决方案e-Otter++将最先进的Python再现测试生成器适配以在Java上获得高性能。为了在行业环境中评估,除了使用TDD-Bench-Java的实证结果外,本文还展示了无污染的专有数据集的结果。总体而言,我们希望本文能促进Java软件开发中的更好诊断和验证。

英文摘要:

Given an issue on a software repository, a reproduction test confirms its presence in the code before it gets fixed and its absence after. Reproduction tests provide crucial execution-based feedback for diagnosis and validation during software development. Unfortunately, they are usually missing. Therefore, recent work has introduced both benchmarks and a thriving literature on solutions for reproduction test generation from issues. However, that work has focused on Python and neglected other languages such as Java, which is important for enterprise software. This paper introduces both a benchmark and a solution for Java repository-level reproduction test generation. The benchmark, TDD-Bench-Java, is the first to model this problem and comprises 250 instances sourced from popular open-source repositories. The solution, e-Otter++ for Java, adapts a state-of-the-art reproduction test generator for Python to yield high performance on Java. To evaluate in an industry setting, besides empirical results with TDD-Bench-Java, this paper also presents results with a contamination-free proprietary dataset. Overall, we hope that this paper contributes to bringing better diagnosis and validation to Java software development.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑