From c385fe2544e7a942079efd83896a17eaf2890ac0 Mon Sep 17 00:00:00 2001 From: Andrey Kurilin Date: Wed, 27 Jul 2016 16:49:02 +0300 Subject: [PATCH] launch tests in parallel Change-Id: Ia1a228672e33c997baf3c234c1bc3c1f9a336d31 --- test-requirements.txt | 1 + tox.ini | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test-requirements.txt b/test-requirements.txt index 2fabed4ebc..7d7bfce8f5 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -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 diff --git a/tox.ini b/tox.ini index b757254234..838583f082 100644 --- a/tox.ini +++ b/tox.ini @@ -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]