diff options
Diffstat (limited to 'conductor/tox.ini')
-rw-r--r-- | conductor/tox.ini | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/conductor/tox.ini b/conductor/tox.ini index 498770f..99af8b8 100644 --- a/conductor/tox.ini +++ b/conductor/tox.ini @@ -15,6 +15,7 @@ commands = {toxinidir}/tools/pretty_tox.sh "{posargs}" oslo-config-generator --config-file=etc/conductor/conductor-config-generator.conf whitelist_externals = bash + find [testenv:functional] setenv = VIRTUAL_ENV={envdir} @@ -24,9 +25,18 @@ commands = bash -x {toxinidir}/run-functional-tests.sh "{posargs}" [testenv:cover] -setenv = OS_TEST_PATH=conductor/tests +setenv = VIRTUAL_ENV={envdir} + LANGUAGE=en_US + OS_TEST_PATH=conductor/tests/unit + PYTHON=coverage run --source conductor --omit='*tests*' --parallel-mode commands = - python setup.py testr --slowest --coverage --testr-args='^(?!conductor_integrationtests){posargs}' + coverage erase + find . -type f -name "*.pyc" -delete + {toxinidir}/tools/pretty_tox.sh "{posargs}" + coverage combine + coverage html -d cover + coverage xml -o cover/coverage.xml + coverage report [testenv:pep8] deps = hacking<0.12,>=0.11.0 |