commit | dc98aedef746def718dbdc8767fb12d9d219c35c | [log] [tgz] |
---|---|---|
author | Gavin Mak <gavinmak@google.com> | Wed Aug 31 22:40:50 2022 |
committer | Gavin Mak <gavinmak@google.com> | Thu Sep 01 22:43:42 2022 |
tree | 9111e55c1c2c8ef8004a67f285a584221911d686 | |
parent | 75ba306b0cfe932d9a673dff32e1246b6f5f80b4 [diff] |
Use @open-wc/testing Bug: 1358229 Change-Id: I8b17750ee48501225f6e5846c128dc32ef8f9f3e
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/chromium-behavior
Run the commands below in web/.
For running TypeScript 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 the JavaScript bundle and copies it to the plugins/chromium-behavior
folder:
make build
Start polygerit-ui server:
./polygerrit-ui/run-server.sh --plugins="plugins"
and let the Dev Helper redirect from .+/plugins/chromium-behavior/static/chromium-behavior.js
to http://localhost:8081/plugins/chromium-behavior.js
.