commit | e1aabedad1d189ee1fc795a23d557438de5b196c | [log] [tgz] |
---|---|---|
author | Gavin Mak <gavinmak@google.com> | Wed Aug 31 22:41:09 2022 |
committer | Gavin Mak <gavinmak@google.com> | Wed Aug 31 23:22:12 2022 |
tree | e6bd9523bfd928a23702c7f56dc89ada61044dc2 | |
parent | 76887cd7ca5538c9f88eccabb36d80dd5d52de78 [diff] |
Use @open-wc/testing Bug: 1358229 Change-Id: I670ef3d68b31b32017eef43a528b09e40d8c3a16
This plugin must be placed inside the Gerrit plugins directory:
git clone --recurse-submodules https://gerrit.googlesource.com/gerrit cd gerrit/plugins git clone https://chromium.googlesource.com/infra/gerrit-plugins/landingwidget
Run the commands below in web/.
For running unit tests execute:
make test
For checking or fixing eslint formatter problems run:
make lint_test make lint_fix
For testing the plugin with Gerrit FE Dev Helper the command below builds build the JavaScript bundle and copies it to the plugins/landingwidget
folder:
make build
and let the Dev Helper redirect from .+/plugins/landingwidget/static/landingwidget.js
to http://localhost:8081/plugins_/plugins/landingwidget.js
.
Note for local testing: this plugin fetches from an external site which may be blocked by CORS policy.