summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-11-23 10:24:47 -0500
committerNed Batchelder <ned@nedbatchelder.com>2016-11-23 10:24:47 -0500
commita3f308eb21c218ee9a577bce5db29e4548d17e38 (patch)
treefe12b9eff5be6af963936035ade4b6b15a09a513
parentdd1e0096e7de4d9a6f6a3f27a5954b36920d38e9 (diff)
downloadpython-coveragepy-a3f308eb21c218ee9a577bce5db29e4548d17e38.tar.gz
Use xdist to run tests faster
-rw-r--r--setup.cfg2
-rw-r--r--tox.ini1
2 files changed, 2 insertions, 1 deletions
diff --git a/setup.cfg b/setup.cfg
index 5e19bd2..f3dd4b6 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,5 +1,5 @@
[tool:pytest]
-addopts = -q
+addopts = -q -n3
[pep8]
# E265 block comment should start with '# '
diff --git a/tox.ini b/tox.ini
index a7b320b..44c9914 100644
--- a/tox.ini
+++ b/tox.ini
@@ -11,6 +11,7 @@ usedevelop = True
deps =
# https://requires.io/github/nedbat/coveragepy/requirements/
git+https://github.com/nedbat/pytest.git@bug2038#egg=pytest==0.0
+ pytest-xdist==1.15.0
pip==8.1.2
mock==2.0.0
PyContracts==1.7.9