Skip to content
Snippets Groups Projects
Commit f70599b2 authored by zhuzeyu's avatar zhuzeyu
Browse files

Modify the directory path in running-tests.rst

Change-Id: I289c80c7d1c3a08d1ced9e596e06659aac280640
partially-implements: blueprint documentation-rework
parent 56445484
No related branches found
No related tags found
No related merge requests found
...@@ -4,8 +4,7 @@ ...@@ -4,8 +4,7 @@
Running tests Running tests
============= =============
Kolla contains a suite of tests in the Kolla-ansible contains a suit of tests in the ``tests`` directory.
``tests`` and ``kolla/tests`` directories.
Any proposed code change in gerrit is automatically rejected by the OpenStack Any proposed code change in gerrit is automatically rejected by the OpenStack
Jenkins server [#f1]_ if the change causes test failures. Jenkins server [#f1]_ if the change causes test failures.
...@@ -55,28 +54,28 @@ Instead of running all tests, you can specify an individual directory, file, ...@@ -55,28 +54,28 @@ Instead of running all tests, you can specify an individual directory, file,
class or method that contains test code, i.e. filter full names of tests by a class or method that contains test code, i.e. filter full names of tests by a
string. string.
To run the tests located only in the ``kolla/tests`` To run the tests located only in the ``kolla-ansible/tests``
directory use: directory use:
.. code-block:: console .. code-block:: console
$ tox -e py27 kolla.tests $ tox -e py27 kolla-ansible.tests
To run the tests of a specific file say ``kolla/tests/test_kolla_docker.py``: To run the tests of a specific file say ``kolla-ansible/tests/test_kolla_docker.py``:
.. code-block:: console .. code-block:: console
$ tox -e py27 test_kolla_docker $ tox -e py27 test_kolla_docker
To run the tests in the ``ModuleArgsTest`` class in To run the tests in the ``ModuleArgsTest`` class in
the ``kolla/tests/test_kolla_docker.py`` file: the ``kolla-ansible/tests/test_kolla_docker.py`` file:
.. code-block:: console .. code-block:: console
$ tox -e py27 test_kolla_docker.ModuleArgsTest $ tox -e py27 test_kolla_docker.ModuleArgsTest
To run the ``ModuleArgsTest.test_module_args`` test method in To run the ``ModuleArgsTest.test_module_args`` test method in
the ``kolla/tests/test_kolla_docker.py`` file: the ``kolla-ansible/tests/test_kolla_docker.py`` file:
.. code-block:: console .. code-block:: console
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment