| commit | c6245396b89edd67d3e0dc5462a5724be3607664 | [log] [tgz] |
|---|---|---|
| author | Paladox none <thomasmulhall410@yahoo.com> | Thu Apr 24 09:24:41 2025 -0700 |
| committer | Paladox none <thomasmulhall410@yahoo.com> | Mon Jan 05 11:12:13 2026 -0800 |
| tree | 1631afec60ad0b6f9db04213ccf05f057b5b1f07 | |
| parent | ceca592e8ed2870ee9b2e2c9e1b93c1f07f81ffa [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. Change-Id: I5783f54179f6046af40cb05f043eedae6749211d
See src/main/resources/documentation.
For running unit tests execute:
bazel test --test_output=all //plugins/automerger/web:web_test_runner
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.