arXiv:2607.04786cs.SEcs.AI2026-07

用多智能体融合分析预测代码变更后需维护的测试用例

An Exploration of Agentic Information Fusion for Test Maintenance Prediction

  • 构建多智能体框架,融合静态、词法、语义分析结果
  • 在21个工业项目上实现更高精度与F1分数,仅轻微降低召回率
  • 适合关注自动化测试维护与智能软件工程的研究者

测试维护是代码库快速演进背景下关键但成本高昂的任务。为辅助该过程,我们提出MAST——一种多智能体框架,用于预测生产代码变更后哪些测试用例需要维护。该识别任务是后续维护的前提,但由于生产代码与测试代码间关系复杂,仍具挑战性。MAST通过智能融合多种分析(包括静态、词法和语义分析)及后置校验机制,提升性能,并聚焦于真实应用场景:标准化输入格式、仓库级分析,以及无需预设映射即可推断测试与生产构件间关系。我们在埃里克森公司提供的21个工业级Java仓库上评估了MAST,涵盖测试维护实际需要与不需要的情况。结果表明,相比现有最优基线,MAST在精度、准确率、F1和F2评分上均表现更优,仅略有召回率下降。消融实验验证了各分析模块对最终推荐的贡献价值。该研究展示了多智能体系统在融合多源信息进行软件测试任务中的潜力。

原文摘要 · Abstract (English)

Test maintenance is a critical, yet costly, activity - particularly as codebases rapidly evolve. To assist, we present MAST, a multi-agent framework that predicts which test cases require maintenance following changes to the production code. This identification task is necessary as a precondition to any subsequent maintenance activities, but remains challenging due to the complex relationships between production and test code. MAST advances the state-of-the-art by integrating multiple analyses -- including static, lexical, and semantic analyses - through an intelligent fusion and post-check procedure and by focusing on a realistic use and evaluation setting - i.e., standardized input formats, repository-level analyses, and the ability to infer relations between test and production artifacts rather than assuming a pre-existing mapping. We evaluated MAST on 21 industrial Java repositories from Ericsson AB, considering situations where test maintenance both was and was not required in the ground truth. MAST yielded superior precision to a state-of-the-art baseline - resulting in a higher accuracy, F1, and F2 score - with only some loss in recall. Our ablation study demonstrates the value of each analysis in producing the final recommendations. MAST illustrates the potential of multi-agent systems that can fuse multiple information sources when performing software testing tasks.

测试维护多智能体代码分析软件工程

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。