diff options
author | wangqi <wang.qi@99cloud.net> | 2018-05-22 03:21:40 +0000 |
---|---|---|
committer | Ben Nemec <bnemec@redhat.com> | 2018-06-14 18:51:15 +0000 |
commit | 897823fbd61ae9ba015af38e9fed5a5728de64c2 (patch) | |
tree | b110a7f3bc5acec053a351342ee4d8a966668d9d /tox.ini | |
parent | 258f8945ba989d49c38d3cffa45ae063b49b57f0 (diff) | |
download | oslotest-897823fbd61ae9ba015af38e9fed5a5728de64c2.tar.gz |
When the TC merged I2637dd714cbb6d38ef8b8dc1083e359207118284 we're
supposed to invoke stestr rather than testr so lets do that
Change-Id: Iba54c6540644d3d4942686b9f1c33fce6d19d431
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -9,7 +9,7 @@ deps = -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} -r{toxinidir}/test-requirements.txt -r{toxinidir}/requirements.txt -commands = python setup.py testr --slowest --testr-args='{posargs}' +commands = stestr run --slowest {posargs} [testenv:py27] basepython = python2.7 @@ -20,8 +20,13 @@ commands = flake8 [testenv:cover] basepython = python3 +setenv = + PYTHON=coverage run --source $project --parallel-mode commands = - python setup.py test --coverage --testr-args='{posargs}' + stestr run '{posargs}' + coverage combine + coverage html -d cover + coverage xml -o cover/coverage.xml [testenv:venv] basepython = python3 |