AIFeed

仓库代码覆盖率视图现已进入公开预览

AI summary

GitHub Code Quality 现为每个仓库提供代码覆盖率视图,处于公开预览阶段。代码覆盖率衡量测试执行的已报告源代码行所占百分比。在仓库的 Code Quality 区域中,可查看当前覆盖率、随时间的变化以及与覆盖率目标的对比。

Translation(model translation, not the source's own text)

文章标题:仓库代码覆盖率视图现已进入公开预览

正文: GitHub Code Quality 现在为每个仓库提供代码覆盖率视图,处于公开预览阶段。代码覆盖率衡量的是你的测试所执行的已上报源代码行的百分比。在仓库的 Code Quality 区域中,前往 Code coverage 即可查看当前覆盖率、其随时间的变化情况,以及与覆盖率目标的对比。

视图内容

  • 当前覆盖率:基于你最新的覆盖率报告,默认分支的行覆盖率百分比。如果你上传了多份报告,例如每种语言或每个测试套件各一份,我们会将它们合并,并只统计一次被多份报告覆盖的行。
  • 覆盖率历史:默认分支行覆盖率最近 30 天的折线图,并提供 14 天和 90 天选项。历史数据每天更新一次。
  • 覆盖率目标:仓库管理员和维护者可以为默认分支的整体行覆盖率设置目标,任何能看到 Code Quality 结果的人都可以查看该目标。该目标仅用于展示,不会阻止合并。

开始使用

要使用该视图,请为你的仓库启用 GitHub Code Quality,并从默认分支上传 Cobertura XML 覆盖率报告。了解更多关于查看仓库代码覆盖率的信息。

代码覆盖率视图在 GitHub Enterprise Cloud 和 GitHub Team(包括具有数据驻留的 GitHub Enterprise Cloud)上以公开预览形式提供。它不适用于 GitHub Enterprise Server。

social
social

Only about 731 characters could be extracted — the rest did not come through (common on sites that need scrolling or a login). Read the original for the full piece.

Published by GitHub Changelog
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗