Merge branch 'stable-3.1'
* stable-3.1:
Documentation: Refactor to match other plugin documentation
Documentation: Add missing alternative for plugin in-tree testing
Upgrade bazlets to latest stable-2.16
Change-Id: I8cb229543647fa8180175c59e811f8d9b95adab8
diff --git a/src/main/resources/Documentation/build.md b/src/main/resources/Documentation/build.md
index 38084d6..1d86dd0 100644
--- a/src/main/resources/Documentation/build.md
+++ b/src/main/resources/Documentation/build.md
@@ -71,6 +71,13 @@
bazel-bin/plugins/@PLUGIN@/@PLUGIN@.jar
```
+To execute the tests run either one of:
+
+```
+ bazel test --test_tag_filters=@PLUGIN@ //...
+ bazel test plugins/@PLUGIN@:@PLUGIN@_tests
+```
+
This project can be imported into the Eclipse IDE:
Add the plugin name to the `CUSTOM_PLUGINS` and to the
`CUSTOM_PLUGINS_TEST_DEPS` set in Gerrit core in
@@ -80,12 +87,6 @@
./tools/eclipse/project.py
```
-To execute the tests run:
-
-```
- bazel test --test_tag_filters=@PLUGIN@ //...
-```
-
How to build the Gerrit Plugin API is described in the [Gerrit
documentation](../../../Documentation/dev-bazel.html#_extension_and_plugin_api_jar_files).