summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHervé Beraud <hberaud@redhat.com>2020-01-15 09:58:31 +0100
committerHervé Beraud <hberaud@redhat.com>2020-01-15 09:58:31 +0100
commitee55593f66e1d901c2d1d3c3d22a10136e5746a4 (patch)
tree424fca1a81ef2fc726a8d5823f97d8c98263238b
parent00d376edfb6cf759e556107a1ef2d1302b1ea83c (diff)
downloadoslo-policy-ee55593f66e1d901c2d1d3c3d22a10136e5746a4.tar.gz
Move away from python setup.py test who is deprecated in pbr
https://docs.openstack.org/pbr/latest/user/features.html#test Change-Id: Ie5f7cf0d8eefed2ee756114ef5a145fe151b11b2
-rw-r--r--tox.ini8
1 files changed, 7 insertions, 1 deletions
diff --git a/tox.ini b/tox.ini
index 17f4966..21552b8 100644
--- a/tox.ini
+++ b/tox.ini
@@ -34,7 +34,13 @@ commands =
sphinx-build -W --keep-going -b html doc/source doc/build/html
[testenv:cover]
-commands = python setup.py test --coverage --coverage-package-name=oslo_policy --testr-args='{posargs}'
+setenv =
+ PYTHON=coverage run --source oslo_policy --parallel-mode
+commands =
+ stestr run --slowest {posargs}
+ coverage combine
+ coverage html -d cover
+ coverage report
[flake8]
show-source = True