arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2601.18241cs.SEcs.AI
收藏

TAM-Eval: 评估用于自动单元测试维护的LLM

TAM-Eval: Evaluating LLMs for Automated Unit Test Maintenance

Both authors contributed equally to this research.(共同作者)
Elena Bruches, Vadim Alperovich, Dari Baturova, Roman Derunets, Daniil Grebenkin, Georgy Mkrtchyan, Oleg Sedukhin, Mikhail Klementev, Ivan Bondarenko, Nikolay B… 展开作者

Elena Bruches, Vadim Alperovich, Dari Baturova, Roman Derunets, Daniil Grebenkin, Georgy Mkrtchyan, Oleg Sedukhin, Mikhail Klementev, Ivan Bondarenko, Nikolay Bushkov, Stanislav Moiseev

AI总结:

TAM-Eval提出一个评估LLM在自动单元测试维护能力的框架和基准,通过测试套件创建、修复和更新三个场景,揭示LLM在真实测试维护中的局限性。

摘要:

尽管大型语言模型(LLMs)在软件工程中展现出潜力,但其在单元测试中的应用仍大多局限于孤立的测试生成或 oracle 预测,忽视了更广泛的测试套件维护挑战。我们引入TAM-Eval(测试自动化维护评估),一种框架和基准,旨在评估模型在三个核心测试维护场景中的性能:测试套件的创建、修复和更新。与以往仅限于函数级任务的工作不同,TAM-Eval在测试文件级别操作,同时在孤立评估中保持对完整仓库上下文的访问,更真实地反映了现实中的维护流程。我们的基准包括从Python、Java和Go项目中自动提取和验证的1,539个场景。TAM-Eval支持对原始LLM和代理工作流的系统无关评估,使用基于测试套件通过率、代码覆盖率和变异测试的参考自由协议。实证结果表明,最先进的LLM在现实的测试维护过程中能力有限,仅在测试有效性上产生微小提升。我们发布TAM-Eval作为开源框架,以支持未来自动化软件测试的研究。我们的数据和代码可在https://github.com/trndcenter/TAM-Eval公开获取。

英文摘要:

While Large Language Models (LLMs) have shown promise in software engineering, their application to unit testing remains largely confined to isolated test generation or oracle prediction, neglecting the broader challenge of test suite maintenance. We introduce TAM-Eval (Test Automated Maintenance Evaluation), a framework and benchmark designed to evaluate model performance across three core test maintenance scenarios: creation, repair, and updating of test suites. Unlike prior work limited to function-level tasks, TAM-Eval operates at the test file level, while maintaining access to full repository context during isolated evaluation, better reflecting real-world maintenance workflows. Our benchmark comprises 1,539 automatically extracted and validated scenarios from Python, Java, and Go projects. TAM-Eval supports system-agnostic evaluation of both raw LLMs and agentic workflows, using a reference-free protocol based on test suite pass rate, code coverage, and mutation testing. Empirical results indicate that state-of-the-art LLMs have limited capabilities in realistic test maintenance processes and yield only marginal improvements in test effectiveness. We release TAM-Eval as an open-source framework to support future research in automated software testing. Our data and code are publicly available at https://github.com/trndcenter/TAM-Eval.

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

↑