summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini11
1 files changed, 7 insertions, 4 deletions
diff --git a/tox.ini b/tox.ini
index 528739a2..cf56f83b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -10,19 +10,22 @@ deps = .[gnocchi,zaqar]
install_command = pip install -U {opts} {packages}
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
- OS_TEST_PATH=ceilometer/tests/unit
CEILOMETER_TEST_BACKEND={env:CEILOMETER_TEST_BACKEND:none}
passenv = OS_TEST_TIMEOUT OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_LOG_CAPTURE CEILOMETER_*
commands =
- {toxinidir}/tools/pretty_tox.sh "{posargs}"
+ stestr run {posargs}
oslo-config-generator --config-file=etc/ceilometer/ceilometer-config-generator.conf
whitelist_externals = bash
[testenv:cover]
basepython = python3
-setenv = OS_TEST_PATH=ceilometer/tests
+setenv =
+ PYTHON=coverage run --source ceilometer --parallel-mode
commands =
- python setup.py testr --slowest --coverage --testr-args="{posargs}"
+ stestr run '{posargs}'
+ coverage combine
+ coverage html -d cover
+ coverage xml -o cover/coverage.xml
[testenv:pep8]
basepython = python3