summaryrefslogtreecommitdiff
path: root/TESTING.rst
diff options
context:
space:
mode:
authorJames E. Blair <jeblair@redhat.com>2018-05-16 13:01:52 -0700
committerJames E. Blair <jeblair@redhat.com>2018-05-17 08:33:40 -0700
commitef23bd4862c8ee412816de3a3ecf3b73c5151549 (patch)
tree9c2d17179bd774759d70fa3377d1358a9d3e3936 /TESTING.rst
parent12a4b7f1d208e4777a7a437118c03d9a391a7cc4 (diff)
downloadzuul-ef23bd4862c8ee412816de3a3ecf3b73c5151549.tar.gz
Revert "Revert "Switch to stestr""
This reverts commit e56801f2e8a04f08813125b05a4ff8c983beddbd. Change-Id: Icbea5ddd744d1fa65a397fb613731315687f9803
Diffstat (limited to 'TESTING.rst')
-rw-r--r--TESTING.rst18
1 files changed, 6 insertions, 12 deletions
diff --git a/TESTING.rst b/TESTING.rst
index 86301c74f..24da82da9 100644
--- a/TESTING.rst
+++ b/TESTING.rst
@@ -50,6 +50,7 @@ Run The Tests
*Navigate to the project's root directory and execute*::
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.
@@ -79,21 +80,20 @@ To run individual tests with tox::
tox -e <env> -- path.to.module.Class.test
-For example, to *run the basic Zuul test*::
+For example, to *run a single Zuul test*::
tox -e py35 -- tests.unit.test_scheduler.TestScheduler.test_jobs_executed
To *run one test in the foreground* (after previously having run tox
to set up the virtualenv)::
- . .tox/py35/bin/activate
- python -m testtools.run tests.unit.test_scheduler.TestScheduler.test_jobs_executed
+ .tox/py35/bin/stestr run -t tests.unit.test_scheduler.TestScheduler.test_jobs_executed
List Failing Tests
------------------
.tox/py35/bin/activate
- testr failing --list
+ stestr failing --list
Hanging Tests
-------------
@@ -102,7 +102,7 @@ The following will run each test in turn and print the name of the
test as it is run::
. .tox/py35/bin/activate
- testr run --subunit | subunit2pyunit
+ stestr run
You can compare the output of that to::
@@ -111,10 +111,4 @@ You can compare the output of that to::
Need More Info?
---------------
-More information about testr: https://wiki.openstack.org/wiki/Testr
-
-More information about nose: https://nose.readthedocs.org/en/latest/
-
-
-More information about testing OpenStack code can be found here:
-https://wiki.openstack.org/wiki/Testing
+More information about stestr: http://stestr.readthedocs.io/en/latest/