summaryrefslogtreecommitdiff
path: root/HACKING.rst
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2015-03-03 15:55:42 +0000
committerGerrit Code Review <review@openstack.org>2015-03-03 15:55:42 +0000
commite9200ba51f144ebc95a86241594326248a1e6ffe (patch)
treef35759b2f55af7b2f1a1c583f6990fbef91caaef /HACKING.rst
parent6a121c7ac1f13f072f06926c960cb494b284803b (diff)
parentb971870d64fcf9808006858fd170c857b62722c9 (diff)
downloadnova-e9200ba51f144ebc95a86241594326248a1e6ffe.tar.gz
Merge "Add note on running single tests to HACKING.rst"
Diffstat (limited to 'HACKING.rst')
-rw-r--r--HACKING.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/HACKING.rst b/HACKING.rst
index 6a09373f71..97cf0f9d03 100644
--- a/HACKING.rst
+++ b/HACKING.rst
@@ -78,6 +78,14 @@ Python packages may also have dependencies that are outside of tox's ability
to install. Please refer to doc/source/devref/development.environment.rst for
a list of those packages on Ubuntu, Fedora and Mac OS X.
+To run a single or restricted set of tests, pass a regex that matches
+the class name containing the tests as an extra ``tox`` argument;
+e.g. ``tox -- TestWSGIServer`` (note the double-hypen) will test all
+WSGI server tests from ``nova/tests/test_wsgi.py``; ``--
+TestWSGIServer.test_uri_length_limit`` would run just that test, and
+``-- TestWSGIServer|TestWSGIServerWithSSL`` would run tests from both
+classes.
+
It is also possible to run the tests inside of a virtual environment
you have created, or it is possible that you have all of the dependencies
installed locally already. In this case, you can interact with the testr