paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Toward a Multi-Agent System for Reliable Mocking of Static Methods and Continuous Integration

迈向面向静态方法可靠 Mock 与持续集成的多智能体系统
ICSE Proceedings of the 2026 IEEE/ACM 48th International Conference on Software Engineering2026匹配度 4/10 · 论文将 LLM/多智能体用于 C# 静态方法 Mock、重构和单元测试生成,并集成 CI,属于 AI for Software Engineering/测试生成;与用户关注的静态分析、形式化验证、浮点程序分析、贝叶斯程序分析没有直接交集,仅在“agentic loop/LLM 作为工具”层面相关。引用 0 inbox
Jasper Stone
crossref: 2026-09-12

AI 速览

一句话:提出用生成-测试-修复智能体循环与多智能体协作,自动化静态方法重构、Mock 与单元测试生成,并集成到 CI 工作流。

静态类型语言(如 C#)中的静态方法调用常使方法难以测试。将此类调用重构为自定义类与接口可减少不可测代码,但对初级开发者陌生、对资深开发者繁琐;传统单元测试生成器和近期基于 LLM 的生成器难以自动化该重构与测试创建过程。该研究旨在探究生成-测试-修复的智能体循环、多智能体协作,及其融入持续集成工作流,以自动化重构与测试创建。最终目标是提升包含静态方法调用的生产代码的单元测试自动生成,实现准确的测试创建与重构,同时降低开发者的认知负担。

问题
静态方法调用使 C# 等静态类型代码中的方法难以测试;将其重构为类与接口虽能减少不可测代码,但人工完成困难,现有单元测试生成器与基于 LLM 的生成器也难以自动化该重构与测试创建过程。
方法
拟采用生成-测试-修复的 agentic loop、多智能体协作,并将其整合进持续集成工作流,以自动完成静态方法调用的重构、Mock 与单元测试创建。
评估
摘要未报告具体实验评估或结果;研究以准确生成测试与重构、减少开发者认知负担为目标,并计划通过持续集成流程验证自动化重构与测试创建的效果。
原文摘要(Abstract)

Code written in statically typed languages such as C# often contains static method calls that make methods untestable. Static method calls should be refactored into a custom class and interface to reduce untestable code. This refactoring effort may be unfamiliar to junior developers and tedious to developers with more experience. Traditional unit test generators and, more recently, LLM based unit test generators struggle to automate this refactoring and test creation process. This research aims to investigate the use of an agentic loop (generate, test, repair), multi-agent collaboration, and its incorporation into continuous integration workflows to automate refactoring and test creation. The ultimate goal of this research is to enhance the automated generation of unit tests for production code that includes static method calls, by facilitating accurate test creation and refactoring while minimizing the cognitive load on developers.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot11593,
  title = {Toward a Multi-Agent System for Reliable Mocking of Static Methods and Continuous Integration},
  author = {Jasper Stone},
  booktitle = {ICSE},
  year = {2026},
  doi = {10.1145/3774748.3787622}
}