From cbc67fc75097b3fb977c20cccdb613e57fdd4e29 Mon Sep 17 00:00:00 2001 From: Stephanie Wang Date: Thu, 6 Jun 2019 18:18:24 -0700 Subject: [PATCH] [doc] Update developer docs with bazel instructions (#4944) --- doc/source/development.rst | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/doc/source/development.rst b/doc/source/development.rst index 1fdc65fa3..ecbed6c31 100644 --- a/doc/source/development.rst +++ b/doc/source/development.rst @@ -29,8 +29,11 @@ recompile much more quickly by doing .. code-block:: shell - cd ray/build - make -j8 + cd ray + bazel build //:ray_pkg + +This command is not enough to recompile all C++ unit tests. To do so, see +`Testing locally`_. Debugging --------- @@ -144,6 +147,14 @@ When running tests, usually only the first test failure matters. A single test failure often triggers the failure of subsequent tests in the same script. +To compile and run all C++ tests, you can run: + +.. code-block:: shell + + cd ray + bazel test $(bazel query 'kind(cc_test, ...)') + + Linting -------