diff --git a/doc/source/development.rst b/doc/source/development.rst index 13b773267..66e666b4d 100644 --- a/doc/source/development.rst +++ b/doc/source/development.rst @@ -131,15 +131,14 @@ This will print any ``RAY_LOG(DEBUG)`` lines in the source code to the Testing locally --------------- -Suppose that one of the tests (e.g., ``runtest.py``) is failing. You can run -that test locally by running ``python test/runtest.py``. However, doing so will -run all of the tests which can take a while. To run a specific test that is +Suppose that one of the tests (e.g., ``test_basic.py``) is failing. You can run +that test locally by running ``python -m pytest -v python/ray/tests/test_basic.py``. However, doing so will run all of the tests which can take a while. To run a specific test that is failing, you can do .. code-block:: shell cd ray - python -m pytest -v test/runtest.py::test_keyword_args + python -m pytest -v python/ray/tests/test_basic.py::test_keyword_args When running tests, usually only the first test failure matters. A single test failure often triggers the failure of subsequent tests in the same diff --git a/doc/source/installation.rst b/doc/source/installation.rst index 6fd6c69dd..2b5f19f8c 100644 --- a/doc/source/installation.rst +++ b/doc/source/installation.rst @@ -116,7 +116,7 @@ that you've cloned the git repository. .. code-block:: bash - python -m pytest -v test/mini_test.py + python -m pytest -v python/ray/tests/test_mini.py Cleaning the source tree ~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/python/ray/tests/test_recursion.py b/python/ray/tests/test_recursion.py index 0b3b68351..5af4fa15b 100644 --- a/python/ray/tests/test_recursion.py +++ b/python/ray/tests/test_recursion.py @@ -1,4 +1,4 @@ -# This test is not inside of runtest.py because when a recursive remote +# This test is not inside of test_basic.py because when a recursive remote # function is defined inside of another function, we currently can't handle # that.