GitHub、プルリクエストでのコードカバレッジ計測がパブリックプレビュー開始
GitHub が全ユーザー向けに、プルリクエスト画面でコードカバレッジの集計値を表示する機能を公開した。これにより、レビュー担当者は外部ツールを使わずにテストの完全性を評価し、より迅速かつ確度の高いマージ判断が可能になる。
コードカバレッジ指標は、現在 github.com のすべての GitHub Code Quality ユーザー向けにパブリックプレビューとして利用可能です。
プルリクエスト上で直接、カバーされたコードの集計パーセンテージを確認できるようになりました。これにより、レビュー担当者はマージ前にテストの完全性を評価するための明確なシグナルを得ることができます。プルリクエスト体験内にカバレッジの文脈を提供することで、チームは別のツールに切り替えることなく、より迅速かつ高信頼性のレビュー判断を下すことができます。
開始するには、リポジトリでコードカバレッジを有効にし、既存の CI ワークフローから Cobertura レポート(Cobertura report)を upload-code-coverage アクションを使用してアップロードしてください。
権限
GitHub Apps および Actions ワークフローでは、コードカバレッジレポートを GitHub にアップロードするために、新しいコード品質:write 細粒度パーミッション(fine-grained permission)が必要です。
利用状況と料金
GitHub Code Quality は本日、GitHub Enterprise Cloud と Team で利用可能ですが、まだ GitHub Enterprise Server では提供されていません。プレビュー期間中は無料です。
詳細情報
ドキュメントでコードカバレッジについて詳しく知る
GitHub Code Quality のドキュメントを読む
GitHub コミュニティのコードカバレッジ発表ページで議論に参加し、フィードバックを残す
この投稿「Code coverage on pull requests is now in public preview」は、The GitHub Blog で最初に公開されました。
原文を表示
Code coverage metrics are now in public preview for all GitHub Code Quality users on github.com.
You can now see an aggregate percent of code covered directly on pull requests, giving reviewers a clear signal to help evaluate test completeness before merging. With coverage context in the pull request experience, your team can make faster, higher-confidence review decisions without switching to a separate tool.
To get started, enable code coverage for your repository and upload a Cobertura report from your existing CI workflow using the upload-code-coverage action.
Permissions
GitHub Apps and Actions workflows require the new code-quality:write fine-grained permission to upload code coverage reports to GitHub.
Availability and pricing
GitHub Code Quality is available today for GitHub Enterprise Cloud and Team, but isn’t yet available on GitHub Enterprise Server. It’s free during the preview period.
Learn more
Learn more about Code Coverage in documentation
Read the GitHub Code Quality documentation
Join the discussion and leave feedback on the Code Coverage announcement in the GitHub Community
The post Code coverage on pull requests is now in public preview appeared first on The GitHub Blog.
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み