跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 软件工程

arXiv:2611.38887 (cs)
[提交于 2026年11月28日]

标题:MockMaster: How to Automock Your Friends and Services

作者:S M Sadrul Islam Asif, Kennett Puerto, Earl T. Barr, Mark Marron
查看论文《MockMaster: How to Automock Your Friends and Services》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:Modern cloud applications are built from independent components that communicate over APIs. Testing these applications is challenging because their components may be difficult to deploy, be owned by other teams, or have test-disrupting side-effects. Developers therefore turn to mocks to simulate such components. Manually written mocks are, however, brittle, costly to maintain, prone to errors, and typically cover only a small fraction of possible behaviors; relying on them confronts developers with the testing version of the infamous regular-expression adage: "I had a testing problem, so I wrote a mock. Now I have two problems." We present MockMaster, a system that automatically generates mocks for cloud APIs and service-based applications from their API specifications. MockMaster combines LLM agents with symbolic techniques, eliminating the need for developers to implement mocks by hand. MockMaster can repeatedly execute a test while varying mock behavior, including failures and edge cases. Across 10 RESTful service benchmarks comprising 65kloc, MockMaster achieves industry standard code coverage of excellent/acceptable for 9 of the 10, discovers a total of 119 distinct 500 errors, and eliminates flaky tests, all while costing less than $0.20 per service.
主题: 软件工程 (cs.SE); 程序设计语言 (cs.PL)
引用方式: arXiv:2611.38887 [cs.SE]
  (或者 arXiv:2611.38887v1 [cs.SE] 对于此版本)
  https://doi.org/10.48550/arXiv.2611.38887

提交历史

来自:Mark Marron
[v1] 2026年11月28日 星期六 15:05:27 UTC (92 KB)
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.SE
< 上一篇   |   下一篇 >
最新 | 近期 | 2026-12
切换浏览方式为:
cs
cs.PL

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站