summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorVu Cong Tuan <tuanvc@vn.fujitsu.com>2018-07-12 14:27:07 +0700
committerVu Cong Tuan <tuanvc@vn.fujitsu.com>2018-07-13 10:18:54 +0700
commit944fe4b6c11abc06386eec670f10784277455b49 (patch)
tree6c252e8cdbb4cd34a81dc4cc59d03ae3121f4383 /tox.ini
parentdff11337f55b7a9a28d7c30658df51b7b0b443eb (diff)
downloadoslo-db-944fe4b6c11abc06386eec670f10784277455b49.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: Ifd51e726de277d33ff61db47110bf8b5563fcda7
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini16
1 files changed, 11 insertions, 5 deletions
diff --git a/tox.ini b/tox.ini
index 99ee0a1..c44391d 100644
--- a/tox.ini
+++ b/tox.ini
@@ -8,7 +8,7 @@ whitelist_externals = bash
env
setenv =
VIRTUAL_ENV={envdir}
- BASECOMMAND=bash tools/pretty_tox.sh
+ BASECOMMAND=stestr run
BRANCH_NAME=master
CLIENT_NAME=oslo.db
@@ -20,15 +20,15 @@ deps =
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands =
- {env:PIFPAF_MYSQL:} {env:PIFPAF_POSTGRESQL:} {env:BASECOMMAND:} '{posargs}'
+ {env:PIFPAF_MYSQL:} {env:PIFPAF_POSTGRESQL:} {env:BASECOMMAND:} {posargs}
passenv = OS_TEST_DBAPI_ADMIN_CONNECTION
[testenv:py27]
basepython = python2.7
commands =
- env TEST_EVENTLET=0 bash tools/pretty_tox.sh '{posargs}'
- env TEST_EVENTLET=1 bash tools/pretty_tox.sh '{posargs}'
+ env TEST_EVENTLET=0 stestr run {posargs}
+ env TEST_EVENTLET=1 stestr run {posargs}
[testenv:pep8]
basepython = python3
@@ -43,7 +43,13 @@ commands = {posargs}
[testenv:cover]
basepython = python3
-commands = python setup.py test --coverage --coverage-package-name=oslo_db --testr-args='{posargs}'
+setenv =
+ PYTHON=coverage run --source oslo_db --parallel-mode
+commands =
+ stestr run '{posargs}'
+ coverage combine
+ coverage html -d cover
+ coverage xml -o cover/coverage.xml
[testenv:docs]
basepython = python3