Updated test script paths in documentation (#4170)

This commit is contained in:
justinwyang
2019-02-26 16:14:55 -08:00
committed by Robert Nishihara
parent f7450dbdd7
commit 19b8793b6a
3 changed files with 5 additions and 6 deletions
+3 -4
View File
@@ -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
+1 -1
View File
@@ -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
~~~~~~~~~~~~~~~~~~~~~~~~
+1 -1
View File
@@ -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.