summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorVu Cong Tuan <tuanvc@vn.fujitsu.com>2018-07-10 16:53:35 +0700
committerVu Cong Tuan <tuanvc@vn.fujitsu.com>2018-07-10 16:53:35 +0700
commit47d2319144dceab0669cb841502d4c9ef819bf1d (patch)
treeec1f64a7cf4c83f68257187cc193c301fbb54005 /tox.ini
parent8332b9eaff3a59026e7af1a7339525440a960d51 (diff)
downloadceilometermiddleware-47d2319144dceab0669cb841502d4c9ef819bf1d.tar.gz
Switch to stestr
According to Openstack summit session [1], stestr is maintained project to which all Openstack projects should migrate. Let's switch to stestr as other projects have already moved to it. [1] https://etherpad.openstack.org/p/YVR-python-pti Change-Id: Ic7db0e419ccf6f7b05058950ec8a76378b428719
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini10
1 files changed, 8 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index 76c28de..af3564d 100644
--- a/tox.ini
+++ b/tox.ini
@@ -11,7 +11,7 @@ setenv =
VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
-commands = python setup.py testr --slowest --testr-args='{posargs}'
+commands = stestr run --slowest {posargs}
[testenv:pep8]
basepython = python3
@@ -24,7 +24,13 @@ commands = {posargs}
[testenv:cover]
basepython = python3
-commands = python setup.py testr --coverage --testr-args='{posargs}'
+setenv =
+ PYTHON=coverage run --source $project --parallel-mode
+commands =
+ stestr run '{posargs}'
+ coverage combine
+ coverage html -d cover
+ coverage xml -o cover/coverage.xml
[testenv:docs]
basepython = python3