From fb686eb95b6b9c8f4e20172a523f11be10b930eb Mon Sep 17 00:00:00 2001 From: lipan Date: Tue, 5 Jun 2018 15:51:04 +0800 Subject: [PATCH] fix the loaction of api/v2 file. According to structure of tests file, we know api/v2 be in functional directory, test_bin be in unit directory. Change-Id: If1e7bfb756516b6c0f79732cabd576750cce9a44 --- doc/source/contributor/testing.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/source/contributor/testing.rst b/doc/source/contributor/testing.rst index 00ab04ab0..af66e5aeb 100644 --- a/doc/source/contributor/testing.rst +++ b/doc/source/contributor/testing.rst @@ -41,15 +41,15 @@ run through tox_. As tox is a wrapper around testr, it also accepts the same flags as testr. See the `testr documentation`_ for details about these additional flags. - Use a double hyphen to pass options to testr. For example, to run only tests under tests/api/v2:: + Use a double hyphen to pass options to testr. For example, to run only tests under tests/functional/api/v2:: - $ tox -e py27 -- api.v2 + $ tox -e py27 -- functional.api.v2 To debug tests (ie. break into pdb debugger), you can use ''debug'' tox environment. Here's an example, passing the name of a test since you'll normally only want to run the test that hits your breakpoint:: - $ tox -e debug aodh.tests.test_bin + $ tox -e debug aodh.tests.unit.test_bin For reference, the ``debug`` tox environment implements the instructions here: https://wiki.openstack.org/wiki/Testr#Debugging_.28pdb.29_Tests