summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-07-16 21:27:16 +0000
committerGerrit Code Review <review@openstack.org>2018-07-16 21:27:16 +0000
commit0d0e4100e2d299c9f62833dc990711c5a95bee1f (patch)
treec7462c2f92dc5f8927501cbc0d2fa9a89f55b1a5 /tox.ini
parent3e1cc3e5e694fbd7194833b89f8e1443508f56a1 (diff)
parent94ade76bc397a8067a9e14021d192fe1894f7286 (diff)
downloadglance_store-0d0e4100e2d299c9f62833dc990711c5a95bee1f.tar.gz
Merge "Update tox.ini to conform to the PTI"
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini20
1 files changed, 12 insertions, 8 deletions
diff --git a/tox.ini b/tox.ini
index e146b6e..80855ae 100644
--- a/tox.ini
+++ b/tox.ini
@@ -11,7 +11,7 @@ deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
passenv = OS_TEST_*
-commands = ostestr --slowest {posargs}
+commands = stestr run --slowest {posargs}
[testenv:docs]
basepython = python3
@@ -47,8 +47,13 @@ commands = bandit -r glance_store -x tests --skip B101,B110,B303
[testenv:cover]
basepython = python3
-setenv = VIRTUAL_ENV={envdir}
-commands = python setup.py testr --coverage --testr-args='^(?!.*test.*coverage).*$'
+setenv =
+ PYTHON=coverage run --source glance_store --parallel-mode
+commands =
+ stestr run {posargs}
+ coverage combine
+ coverage html -d cover
+ coverage xml -o cover/coverage.xml
[testenv:venv]
basepython = python3
@@ -58,13 +63,12 @@ commands = {posargs}
# running functional tests.
[testenv:functional-swift]
sitepackages = True
-setenv = OS_TEST_PATH=./glance_store/tests/functional/swift
-commands = ostestr --slowest --testr-args='glance_store.tests.functional.swift'
+commands =
+ stestr run --slowest --test-path=./glance_store/tests/functional/swift
[testenv:functional-filesystem]
-sitepackages = True
-setenv = OS_TEST_PATH=./glance_store/tests/functional/filesystem
-commands = ostestr --slowest --testr-args='glance_store.tests.functional.filesystem'
+commands =
+ stestr run --slowest --test-path=./glance_store/tests/functional/filesystem
[doc8]
ignore-path = .venv,.git,.tox,*glance_store/locale*,*lib/python*,glance_store.egg*,doc/build,*requirements.txt,lower-constraints.txt