diff options
author | wangqi <wang.qi@99cloud.net> | 2018-05-22 03:26:21 +0000 |
---|---|---|
committer | wangqi <wang.qi@99cloud.net> | 2018-06-05 14:38:51 +0000 |
commit | 7edb3783c769c84f1e6beb390ea7a6079fc7e630 (patch) | |
tree | afaa2d457fcf519400941e17b25fa18fdf820acd /tox.ini | |
parent | 1ef5e5d16976df4b48c0925cdc6c5dc0dfbfb610 (diff) | |
download | python-glanceclient-7edb3783c769c84f1e6beb390ea7a6079fc7e630.tar.gz |
Switch to using stestr
When the TC merged I2637dd714cbb6d38ef8b8dc1083e359207118284 we're
supposed to invoke stestr rather than testr so lets do that
Change-Id: I1b401c583d5e7677fc719bfc4eb2f2bba7b98cfa
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -15,7 +15,7 @@ deps = -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt -commands = python setup.py testr --testr-args='{posargs}' +commands = stestr run --slowest {posargs} [testenv:pep8] commands = flake8 @@ -36,7 +36,7 @@ whitelist_externals = bash commands = bash tools/fix_ca_bundle.sh - python setup.py testr --testr-args='{posargs}' + stestr run --slowest {posargs} [testenv:functional-v1] # TODO(rosmaita): remove this testenv at the beginning @@ -48,11 +48,16 @@ whitelist_externals = bash commands = bash tools/fix_ca_bundle.sh - python setup.py testr --testr-args='{posargs}' + stestr run --slowest {posargs} [testenv:cover] -commands = python setup.py testr --coverage --testr-args='{posargs}' - coverage report +setenv = + PYTHON=coverage run --source glanceclient --parallel-mode +commands = + stestr run {posargs} + coverage combine + coverage html -d cover + coverage xml -o cover/coverage.xml [testenv:docs] deps = -r{toxinidir}/doc/requirements.txt |