From 35732a9ef10dd8ff33dca581024d474e9b89f0c0 Mon Sep 17 00:00:00 2001 From: Stephanie Date: Thu, 6 Jun 2019 15:38:24 -0700 Subject: [PATCH 1/2] Update doc --- 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 1fdc65fa35cf..b7d4a1685f7c 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 +:ref:`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 ------- From 08817dd62b47baa2d51c4f77ce6db2f9ccdf2fe9 Mon Sep 17 00:00:00 2001 From: Philipp Moritz Date: Thu, 6 Jun 2019 15:51:17 -0700 Subject: [PATCH 2/2] fix ref --- doc/source/development.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/development.rst b/doc/source/development.rst index b7d4a1685f7c..ecbed6c31f9e 100644 --- a/doc/source/development.rst +++ b/doc/source/development.rst @@ -33,7 +33,7 @@ recompile much more quickly by doing bazel build //:ray_pkg This command is not enough to recompile all C++ unit tests. To do so, see -:ref:`Testing locally`. +`Testing locally`_. Debugging ---------