arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.16472cs.SEcs.AI
收藏

面向即时可信的基于 LLM 软件测试的加固与捕获:开放研究挑战

Harden and Catch for Just-in-Time Assured LLM-Based Software Testing: Open Research Challenges

Product Compliance and Privacy team, Meta Platforms(Meta平台产品合规与隐私团队);University College London(伦敦大学学院);Fundamental AI Research team, Meta Platforms(Meta平台基础人工智能研究团队);Independent Software and AI Consultant(独立软件与人工智能顾问)

Mark Harman, Peter O'Hearn, Shubho Sengupta

AI总结:

本文形式化定义加固测试与捕获测试,提出捕获式 JiTTest 挑战,并探讨基于 LLM 即时生成测试以阻止新故障进入生产及发现遗留代码潜在故障的研究方向。

摘要:

尽管自动化软件测试已经历数十年研究与实践,但若干基础概念仍定义不清且探索不足,却具有巨大的现实影响潜力。我们表明,在用于软件测试生成的大语言模型(Large Language Models, LLM)背景下,这些概念带来了令人振奋的新挑战。更具体地说,我们形式化定义并研究了加固测试与捕获测试的属性。加固测试旨在防范未来回归,而捕获测试用于捕获此类回归,或捕获代码变更引入的新功能中的故障。加固测试可在任何时间生成,并在未来捕获到回归时成为捕获测试。我们还定义并阐述了“捕获‘即时’(JiTTest)挑战”的动机,在该挑战中,测试被“即时”生成,以便在新故障进入生产环境之前将其捕获。我们表明,捕获式 JiTTest 生成的任何解决方案也可被重新用于捕获遗留代码中的潜在故障。我们列举了加固测试、捕获测试和 JiTTest 的可能结果,并讨论了开放研究问题、部署选项,以及我们在 Meta 开展的基于 LLM 的自动化加固工作的初步结果。本文是为配合作者在 ACM 2025 年软件工程基础国际会议(FSE)上的主题演讲而撰写。作者按字母顺序排列。通讯作者为 Mark Harman。

英文摘要:

Despite decades of research and practice in automated software testing, several fundamental concepts remain ill-defined and under-explored, yet offer enormous potential real-world impact. We show that these concepts raise exciting new challenges in the context of Large Language Models for software test generation. More specifically, we formally define and investigate the properties of hardening and catching tests. A hardening test is one that seeks to protect against future regressions, while a catching test is one that catches such a regression or a fault in new functionality introduced by a code change. Hardening tests can be generated at any time and may become catching tests when a future regression is caught. We also define and motivate the Catching 'Just-in-Time' (JiTTest) Challenge, in which tests are generated 'just-in-time' to catch new faults before they land into production. We show that any solution to Catching JiTTest generation can also be repurposed to catch latent faults in legacy code. We enumerate possible outcomes for hardening and catching tests and JiTTests, and discuss open research problems, deployment options, and initial results from our work on automated LLM-based hardening at Meta. This paper was written to accompany the keynote by the authors at the ACM International Conference on the Foundations of Software Engineering (FSE) 2025. Author order is alphabetical. The corresponding author is Mark Harman.

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

↑