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
This commit is contained in:
Tobias Henkel 2018-04-18 16:09:32 +02:00
parent 35c2059e19
commit 082e7ec795
1 changed files with 7 additions and 6 deletions

View File

@ -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::