commit | 7ba1ff395aad4d9d9b2b36f887c997b2568e9430 | [log] [tgz] |
---|---|---|
author | Paladox none <thomasmulhall410@yahoo.com> | Thu Apr 24 04:36:16 2025 -0700 |
committer | Antonio Barone <syntonyze@gmail.com> | Tue Aug 26 17:02:09 2025 +0200 |
tree | 1879076882f6cacc37f6286a25249ecda422f918 | |
parent | f276e789a073c4869662d2635444a5a862d0bd3f [diff] |
Migrate from karma to web-test-runner We want to get rid of the final remnants of karma from gerrit core. The recommended way to run tests is with web-test-runner. Depends-On: I4e9134e04475d7375d7a09d618892edbe0b555bc Change-Id: I2da2603951304361ba9e47ca968316c5fb29c8b1
A plugin which allows projects to be deleted from Gerrit via an SSH command, REST API or the Project settings screen.
For running unit tests execute:
bazel test --test_output=all //plugins/delete-project/web:karma_test
For checking or fixing eslint formatter problems run:
bazel test //plugins/delete-project/web:lint_test bazel run //plugins/delete-project/web:lint_bin -- --fix "$(pwd)/plugins/delete-project/web"
For testing the plugin with Gerrit FE Dev Helper build the JavaScript bundle and copy it to the plugins/
folder:
bazel build //plugins/delete-project/web:gr-delete-repo cp -f bazel-bin/plugins/delete-project/web/gr-delete-repo.js plugins/
and let the Dev Helper redirect from .+/plugins/delete-project/static/gr-delete-repo.js
to http://localhost:8081/plugins_/gr-delete-repo.js
.