From a11c88a30374e0efe5b45c4f7d9e41b635330875 Mon Sep 17 00:00:00 2001 From: Ha Manh Dong Date: Fri, 20 Jul 2018 13:38:36 +0700 Subject: Switch to use stestr for unit test According to Openstack summit session [1], stestr is maintained project to which all Openstack projects should migrate. So we should switch to stestr. [1] https://etherpad.openstack.org/p/YVR-python-pti Depends-On: https://review.openstack.org/#/c/589728/ Change-Id: I943a73e22eb23bd52c3a96e75c98b88665474e67 --- tox.ini | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 35f4cab..5696d9d 100644 --- a/tox.ini +++ b/tox.ini @@ -21,7 +21,7 @@ deps = -r{toxinidir}/test-requirements.txt -r{toxinidir}/requirements.txt commands = - python setup.py testr --slowest --testr-args='{posargs}' + stestr run {posargs} [testenv:docs] basepython = python3 @@ -56,7 +56,14 @@ basepython = python3 deps = {[testenv]deps} coverage>=3.6 -commands = python setup.py testr --coverage --testr-args='{posargs}' +setenv = + {[testenv]setenv} + PYTHON=coverage run --source taskflow --parallel-mode +commands = + stestr run {posargs} + coverage combine + coverage html -d cover + coverage xml -o cover/coverage.xml [testenv:venv] basepython = python3 -- cgit v1.2.1