mirror of
https://github.com/wassname/ray.git
synced 2026-09-09 11:32:43 +08:00
Updated test script paths in documentation (#4170)
This commit is contained in:
committed by
Robert Nishihara
parent
f7450dbdd7
commit
19b8793b6a
@@ -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
|
||||
|
||||
@@ -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,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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user