summaryrefslogtreecommitdiffstats
path: root/conductor/tox.ini
diff options
context:
space:
mode:
authorkrishnaa96 <krishna.moorthy6@wipro.com>2020-03-17 00:19:32 +0530
committerkrishnaa96 <krishna.moorthy6@wipro.com>2020-03-17 20:37:26 +0530
commitf5805dce206c078e46a0a326ff1ba2cb5da584d1 (patch)
tree18742b40947938244cef6740d0d1d64cf644b1b3 /conductor/tox.ini
parentc34dc0fad35bff8ffbaed7d7c5a67cad597bea65 (diff)
Migrate unit tests to python3
Issue-ID: OPTFRA-645 Signed-off-by: krishnaa96 <krishna.moorthy6@wipro.com> Change-Id: I094eaa594e7a6f6541ca5d894e0af5127afd3936
Diffstat (limited to 'conductor/tox.ini')
-rw-r--r--conductor/tox.ini14
1 files changed, 7 insertions, 7 deletions
diff --git a/conductor/tox.ini b/conductor/tox.ini
index 25ede20..a6aa070 100644
--- a/conductor/tox.ini
+++ b/conductor/tox.ini
@@ -2,8 +2,9 @@
minversion = 1.6
skipsdist = True
#envlist = py35,py27,functional,pep8
-envlist = py27,pep8
+envlist = py3,pep8
[testenv]
+basepython=python3
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
install_command = pip install -U {opts} {packages}
@@ -12,7 +13,7 @@ setenv = VIRTUAL_ENV={envdir}
OS_TEST_PATH=conductor/tests/unit
passenv = OS_TEST_TIMEOUT OS_STDOUT_CAPTURE OS_STDERR_CAPTURE OS_LOG_CAPTURE
commands =
- {toxinidir}/tools/pretty_tox.sh "{posargs}"
+ coverage run --module pytest --junitxml xunit-results.xml
oslo-config-generator --config-file=etc/conductor/conductor-config-generator.conf
whitelist_externals = bash
find
@@ -33,16 +34,15 @@ commands =
coverage erase
find . -type f -name "*.pyc" -delete
find . -type f -name ".coverage.*" -delete
- {toxinidir}/tools/pretty_tox.sh "{posargs}"
- coverage combine
+ coverage run --module pytest --junitxml xunit-results.xml
coverage html -d cover
coverage xml -o cover/coverage.xml
- coverage report --omit=".tox/py27/*","conductor/tests/*"
+ coverage report --omit=".tox/*","conductor/tests/*"
[testenv:pep8]
-deps = hacking<0.12,>=0.11.0
+deps = hacking>=2.0.0
commands =
- flake8
+ flake8 --exit-zero
[testenv:genconfig]
commands = oslo-config-generator --config-file=etc/conductor/conductor-config-generator.conf