commit | 52a041977ae4124cdbf0190fe0ef149bbc0230d0 | [log] [tgz] |
---|---|---|
author | Dmitrii Filippov <dmfilippov@google.com> | Fri Nov 24 16:35:26 2023 +0100 |
committer | Dmitrii Filippov <dmfilippov@google.com> | Fri Nov 24 15:44:02 2023 +0000 |
tree | c7909a3949de53962c48e6df8a3e69a7e25f8ba9 | |
parent | 302cf29cb47d6673667940dc18f72c2f930d24fe [diff] |
Fix tests in the plugin to avoid implicit merges. Some tests resets repo to an incorrect commit and instead of creating sibling change(s) they created child changes in a differnt branch. Tests were verified with the following command: bazel test //plugins/automerger/... Change-Id: Iefe9222a65c64f2c8dd066ae6ff516f014cd1767
See src/main/resources/documentation.
For running unit tests execute:
bazel test --test_output=all //plugins/automerger/web:karma_test
For checking or fixing eslint formatter problems run:
bazel test //plugins/automerger/web:lint_test bazel run //plugins/automerger/web:lint_bin -- --fix "$(pwd)/plugins/automerger/web"
For testing the plugin with Gerrit FE Dev Helper build the JavaScript bundle and copy it to the plugins/
folder:
bazel build //plugins/automerger/web:automerger cp -f bazel-bin/plugins/automerger/web/automerger.js plugins/
and let the Dev Helper redirect from .+/plugins/automerger/static/automerger.js
to http://localhost:8081/plugins_/automerger.js
.