Dedup devref on unit tests

We already have a document on how to run unit tests, so
development.environment should just point to that document instead of
trying to summarize it.  Keeping this information in one less places
makes it easier to make sure the page is up to date (which
development.environment is not -- no mention of tox).

Change-Id: I9aecf439b6145b035b3457559ddb187058f5057b
This commit is contained in:
Joe Gordon 2014-05-04 20:22:07 -07:00
parent 89fd077042
commit a4947243d1
1 changed files with 1 additions and 39 deletions

View File

@ -101,47 +101,9 @@ Grab the code from GitHub::
Running unit tests
------------------
The unit tests will run by default inside a virtualenv in the ``.venv``
directory. Run the unit tests by doing::
./run_tests.sh
See :doc:`unit_tests` for details.
The first time you run them, you will be asked if you want to create a virtual
environment (hit "y")::
No virtual environment found...create one? (Y/n)
See :doc:`unit_tests` for more details.
.. _virtualenv:
Manually installing and using the virtualenv
--------------------------------------------
You can manually install the virtual environment instead of having
``run_tests.sh`` do it for you::
python tools/install_venv.py
This will install all of the Python packages listed in the
``requirements.txt`` file and also those listed in the
``test-requirements.txt`` file into your virtualenv. There will
also be some additional packages (pip, setuptools, greenlet) that are
installed by the ``tools/install_venv.py`` file into the virutalenv.
If all goes well, you should get a message something like this::
Nova development environment setup is complete.
To activate the Nova virtualenv for the extent of your current shell session
you can run::
$ source .venv/bin/activate
Or, if you prefer, you can run commands in the virtualenv on a case by case
basis by running::
$ tools/with_venv.sh <your command>
Using a remote debugger
-----------------------