Clone this repo:


  1. 21a2667 Cleanup experiment flag by Prakhar · 4 weeks ago main master
  2. bf767de [code-coverage] Add Makefile by Joanna Wang · 4 weeks ago
  3. bc5ef6e Increase thresholds for low coverage warning by Prakhar · 3 months ago
  4. bfee431 Fix wrong low coverage warning by Prakhar · 4 months ago
  5. c1ba458 Fix README for code coverage plugin by Prakhar · 4 months ago

Chrome/Chromium Code Coverage Plugin

The purpose of this plugin is to surface code coverage data on Gerrit UI.

Checking out the code

To check out the chromium-coverage plugin code:

git clone


Run the commands below in web/.

Running the tests

make test

Testing in Gerrit

For testing the plugin with Gerrit FE Dev Helper the command below builds the JavaScript bundle and copies it to the plugins folder:

make build

and let the Dev Helper redirect from .+/plugins/code-coverage/.* to http://localhost:8081/plugins_/chromium-coverage.js

You might also have to block loading of prod coverage plugin(s) by using a block rule similar to .*polygerrit_assets/549.0/plugins/.*.

Project Configuration

This plugin is configured via the project.config file present in the repo's refs/meta/config ref. This file uses git config format. By default, the coverage percentage columns in the file list are hidden to avoid visual distraction in unrelated projects, and in order to have them displayed, please add the following config:

[plugin "code-coverage"]
  enabled = true