Add prefix "$" for command examples
Change-Id: I46d7a61d7fbde90e5a4081e1ed5c355d978345e8
This commit is contained in:
parent
056ccaf19b
commit
d2d2c82b28
|
@ -13,11 +13,11 @@ Running Tests
|
|||
|
||||
To run tests in virtualenvs (preferred)::
|
||||
|
||||
sudo pip install tox
|
||||
tox
|
||||
$ sudo pip install tox
|
||||
$ tox
|
||||
|
||||
To run tests in the current environment::
|
||||
|
||||
sudo pip install -r requirements.txt
|
||||
nosetests
|
||||
$ sudo pip install -r requirements.txt
|
||||
$ nosetests
|
||||
|
||||
|
|
18
TESTING.rst
18
TESTING.rst
|
@ -10,19 +10,19 @@ Detailed information on testing can be found here: https://wiki.openstack.org/wi
|
|||
|
||||
*Install pip*::
|
||||
|
||||
[apt-get | yum] install python-pip
|
||||
$ [apt-get | yum] install python-pip
|
||||
More information on pip here: http://www.pip-installer.org/en/latest/
|
||||
|
||||
*Use pip to install tox*::
|
||||
|
||||
pip install tox
|
||||
$ pip install tox
|
||||
|
||||
Run The Tests
|
||||
-------------
|
||||
|
||||
*Navigate to the project's root directory and execute*::
|
||||
|
||||
tox
|
||||
$ tox
|
||||
Note: completing this command may take a long time (depends on system resources)
|
||||
also, you might not see any output until tox is complete.
|
||||
|
||||
|
@ -40,10 +40,10 @@ Tox will run your entire test suite in the environments specified in the project
|
|||
|
||||
To run the test suite in just one of the environments in envlist execute::
|
||||
|
||||
tox -e <env>
|
||||
$ tox -e <env>
|
||||
so for example, *run the test suite in py26*::
|
||||
|
||||
tox -e py26
|
||||
$ tox -e py26
|
||||
|
||||
Run One Test
|
||||
------------
|
||||
|
@ -58,10 +58,10 @@ if testr is in tox.ini, for example::
|
|||
|
||||
run individual tests with the following syntax::
|
||||
|
||||
tox -e <env> -- path.to.module:Class.test
|
||||
$ tox -e <env> -- path.to.module:Class.test
|
||||
so for example, *run the cpu_limited test in Nova*::
|
||||
|
||||
tox -e py27 -- nova.tests.test_claims:ClaimTestCase.test_cpu_unlimited
|
||||
$ tox -e py27 -- nova.tests.test_claims:ClaimTestCase.test_cpu_unlimited
|
||||
|
||||
if nose is in tox.ini, for example::
|
||||
|
||||
|
@ -71,10 +71,10 @@ if nose is in tox.ini, for example::
|
|||
|
||||
run individual tests with the following syntax::
|
||||
|
||||
tox -e <env> -- --tests path.to.module:Class.test
|
||||
$ tox -e <env> -- --tests path.to.module:Class.test
|
||||
so for example, *run the list test in Glance*::
|
||||
|
||||
tox -e py27 -- --tests glance.tests.unit.test_auth.py:TestImageRepoProxy.test_list
|
||||
$ tox -e py27 -- --tests glance.tests.unit.test_auth.py:TestImageRepoProxy.test_list
|
||||
|
||||
Need More Info?
|
||||
---------------
|
||||
|
|
Loading…
Reference in New Issue