launch tests in parallel

Change-Id: Ia1a228672e33c997baf3c234c1bc3c1f9a336d31
This commit is contained in:
Andrey Kurilin 2016-07-27 16:49:02 +03:00
parent 1bdf4314ca
commit c385fe2544
2 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@ hacking>=0.9.2,<0.10 # Apache Software License
pytest>=2.7,<=2.9.2 # MIT
pytest-cov>=2.2.1,<=2.3.0 # MIT
pytest-html # Mozilla Public License 2.0 (MPL 2.0)
pytest-xdist # MIT
coverage>=3.6 # Apache License, Version 2.0
ddt>=1.0.1

View File

@ -18,7 +18,7 @@ install_command = pip install -U {opts} {packages}
usedevelop = True
commands =
find . -type f -name "*.pyc" -delete
py.test --html=pytest_results.html --durations=10 "tests/unit" {posargs}
py.test --html=pytest_results.html --durations=10 -n auto "tests/unit" {posargs}
distribute = false
basepython = python2.7
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
@ -46,7 +46,7 @@ commands = oslo_debug_helper -t tests {posargs}
sitepackages = True
commands =
find . -type f -name "*.pyc" -delete
py.test --html=pytest_results.html --durations=10 "tests/functional" {posargs}
py.test --html=pytest_results.html --durations=10 -n auto "tests/functional" {posargs}
[testenv:cover]