paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Code coverage at Google

Google 的代码覆盖率
FSE Proceedings of the 2019 27th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering2019匹配度 3/10 · 论文介绍 Google 大规模代码覆盖率基础设施与开发者实践,属于软件测试/开发者工具方向,与用户核心关注的静态分析、LLM/Agent、浮点程序分析和贝叶斯程序分析无直接交集;仅在工业级落地案例这一兴趣点上略有共鸣。引用 91 inbox
Marko Ivanković, Goran Petrović, René Just, Gordon Fraser
crossref: 2026-09-12

AI 速览

一句话:介绍 Google 大规模代码覆盖率基础设施、可视化与代码评审应用,并基于五年数据和开发者调查给出工业落地建议。

论文关注代码覆盖率在工业界大规模部署时面临的价值认知与计算成本问题。作者描述了 Google 的覆盖率基础设施:每天为十亿行代码、七种编程语言计算覆盖率,并将信息作用于 changeset 和代码评审层面,使其可操作。文章介绍了覆盖率的可视化与使用方式,以及规模化采用中的挑战与解决方案。为评估采用情况与开发者感知,作者分析了五年期间的采用率、错误率和平均覆盖率,并收集了面向 3000 名开发者的 512 份问卷回复。最后,论文给出了在工业环境中实施和使用代码覆盖率的具体建议。

问题
在大规模工业环境中,代码覆盖率常因有用性质疑和分析计算成本难以落地;本文研究 Google 如何规模化计算、可视化并采纳覆盖率信息。
方法
描述 Google 覆盖率基础设施及其在 changeset 与代码评审中的应用,并结合五年采用/错误/覆盖率数据与 512 份开发者问卷分析开发者感知。
评估
通过五年期采用率、错误率和平均覆盖率统计,以及 3000 名开发者中回收的 512 份问卷,评估覆盖率的采纳情况与开发者看法。
原文摘要(Abstract)

Code coverage is a measure of the degree to which a test suite exercises a software system. Although coverage is well established in software engineering research, deployment in industry is often inhibited by the perceived usefulness and the computational costs of analyzing coverage at scale. At Google, coverage information is computed for one billion lines of code daily, for seven programming languages. A key aspect of making coverage information actionable is to apply it at the level of changesets and code review. This paper describes Google’s code coverage infrastructure and how the computed code coverage information is visualized and used. It also describes the challenges and solutions for adopting code coverage at scale. To study how code coverage is adopted and perceived by developers, this paper analyzes adoption rates, error rates, and average code coverage ratios over a five-year period, and it reports on 512 responses, received from surveying 3000 developers. Finally, this paper provides concrete suggestions for how to implement and use code coverage in an industrial setting.

链接与引用

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

BibTeX
@inproceedings{paperbot5043,
  title = {Code coverage at Google},
  author = {Marko Ivanković and Goran Petrović and René Just and Gordon Fraser},
  booktitle = {FSE},
  year = {2019},
  doi = {10.1145/3338906.3340459}
}