diff --git a/go/core.rst b/go/core.rst index 46b6f2943a..acf1b74a51 100644 --- a/go/core.rst +++ b/go/core.rst @@ -626,6 +626,12 @@ equivalent of ``go test ./...``), run :: bazel test --test_output=errors //... + +To run a Go benchmark test, run + +:: + + bazel run //path/to:test -- -test.bench=. You can run specific tests by passing the `--test_filter=pattern `_ argument to Bazel. You can pass arguments to tests by passing `--test_arg=arg `_ arguments to Bazel.