diff options
author | Ha Manh Dong <donghm@vn.fujitsu.com> | 2018-07-20 13:38:36 +0700 |
---|---|---|
committer | Doug Hellmann <doug@doughellmann.com> | 2018-08-13 16:20:18 -0400 |
commit | a11c88a30374e0efe5b45c4f7d9e41b635330875 (patch) | |
tree | 931a41771ff03536ed5d355595910ab8a06b56da /tox.ini | |
parent | 349f79937f681bc3da3c9c3b545c5714968c15f4 (diff) | |
download | taskflow-a11c88a30374e0efe5b45c4f7d9e41b635330875.tar.gz |
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
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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 |