Bazel docs: Fix command how to run a single test

Also add an example for this.

Change-Id: I375431fdf49175ec5bce8733ba71d8b08e3258ac
Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
Edwin Kempin 2016-11-14 17:01:44 -08:00
parent 0b6b8747fc
commit d31903c9e4

View File

@ -194,7 +194,13 @@ The WAR file will be placed in:
Debugging tests:
----
bazel test --test_output=streamed --test_filter=com.gerrit.TestClass.testMethod //...
bazel test --test_output=streamed --test_filter=com.gerrit.TestClass.testMethod testTarget
----
Debug test example:
----
bazel test --test_output=streamed --test_filter=com.google.gerrit.acceptance.api.change.ChangeIT.getAmbiguous //gerrit-acceptance-tests/src/test/java/com/google/gerrit/acceptance/api/change:api_change
----
To run a specific test group, e.g. the rest-account test group: