summaryrefslogtreecommitdiff
path: root/TESTING.rst
diff options
context:
space:
mode:
authorTobias Henkel <tobias.henkel@bmw.de>2018-04-18 16:09:32 +0200
committerTobias Henkel <tobias.henkel@bmw.de>2018-04-18 16:12:55 +0200
commit082e7ec795ec462a98ab6750c608a14d242b7b77 (patch)
tree49692252634a5d54f0d41ff97533d4ba39771858 /TESTING.rst
parent35c2059e19ccb094cb5bbb26534e3181c0ba9adc (diff)
downloadzuul-082e7ec795ec462a98ab6750c608a14d242b7b77.tar.gz
Update test instructions
We should update the test instructions a bit. This updates the py27 references to py35. Further when running a test in the foreground we need to activate the virtualenv now. Otherwise ansible tests won't work due because the wrong ansible or no ansible at all is found. Change-Id: I96e8a21c93c87cfc1778ae07c54c4a19070a20da
Diffstat (limited to 'TESTING.rst')
-rw-r--r--TESTING.rst13
1 files changed, 7 insertions, 6 deletions
diff --git a/TESTING.rst b/TESTING.rst
index 289af5c2b..86301c74f 100644
--- a/TESTING.rst
+++ b/TESTING.rst
@@ -68,9 +68,9 @@ 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>
-so for example, *run the test suite in py26*::
+so for example, *run the test suite in py35*::
- tox -e py26
+ tox -e py35
Run One Test
------------
@@ -81,17 +81,18 @@ To run individual tests with tox::
For example, to *run the basic Zuul test*::
- tox -e py27 -- tests.unit.test_scheduler.TestScheduler.test_jobs_executed
+ 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/py27/bin/python -m testtools.run tests.unit.test_scheduler.TestScheduler.test_jobs_executed
+ . .tox/py35/bin/activate
+ python -m testtools.run tests.unit.test_scheduler.TestScheduler.test_jobs_executed
List Failing Tests
------------------
- .tox/py27/bin/activate
+ .tox/py35/bin/activate
testr failing --list
Hanging Tests
@@ -100,7 +101,7 @@ Hanging Tests
The following will run each test in turn and print the name of the
test as it is run::
- . .tox/py27/bin/activate
+ . .tox/py35/bin/activate
testr run --subunit | subunit2pyunit
You can compare the output of that to::