summaryrefslogtreecommitdiffstats
path: root/conductor/tox.ini
diff options
context:
space:
mode:
authorDileep Ranganathan <dileep.ranganathan@intel.com>2018-02-10 12:00:18 -0800
committerDileep Ranganathan <dileep.ranganathan@intel.com>2018-02-11 23:26:26 +0000
commit1c260cbd69b7e0e34c01dae57c19ce713bbf3277 (patch)
tree63330e5e103585eb2646b6663830949aea6c2552 /conductor/tox.ini
parentf55f488b69b97ab4bfba039b01aad97563e7c065 (diff)
Unit test for RootController and V1Controller
Addedd unit tests for RootController and V1Controller Updated tox.ini to support coverage Change-Id: I3adf9d2268776382ff1f067857947af9718c9ac8 Issue-ID: OPTFRA-68 Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
Diffstat (limited to 'conductor/tox.ini')
-rw-r--r--conductor/tox.ini14
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