migrate plugin from polymer 2 to 3

Production data screenshot: https://screenshot.googleplex.com/qo6xCJnaoNk

Bug: 1090049
Change-Id: Ifd77f4f348287cd9a95c7d1f1eaa46cad29f865d
14 files changed
tree: 6519e10260499080e17857c31bd0b7c3f319bf07
  1. .gitignore
  2. BUILD
  4. README.md
  5. bower.json
  6. codereview.settings
  7. package-lock.json
  8. package.json
  9. src/
  10. test/
  11. wct.conf.json

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 https://chromium.googlesource.com/infra/gerrit-plugins/code-coverage

Running the tests

The unit tests of the plugin are web-component-tester unit tests. Dependencies are specified in bower.json and can be installed by running bower install in this directory. This requires bower to be installed.

To run the tests, run wct from this directory. See wct --help for more options.

To use with the local testsite

ln -s /path/to/chromium-coverage.html 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