summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSviatoslav Sydorenko <wk@sydorenko.org.ua>2020-11-18 18:38:02 +0100
committerSviatoslav Sydorenko <wk@sydorenko.org.ua>2021-01-18 00:47:03 +0100
commitd3885f25e37b28fe5a50274a5db9819d5e2ce042 (patch)
treeaf9e6f7da8a5e0c2025a0a767fccede22de7a72d
parent925b6be6796c185e5d832a89ce33fbe38c0df5f6 (diff)
downloadpython-setuptools-git-d3885f25e37b28fe5a50274a5db9819d5e2ce042.tar.gz
Parallelize the test runs via pytest-xdist
Resolves #2458
-rw-r--r--pytest.ini3
-rw-r--r--setup.cfg1
2 files changed, 4 insertions, 0 deletions
diff --git a/pytest.ini b/pytest.ini
index 03fc773c..df30b822 100644
--- a/pytest.ini
+++ b/pytest.ini
@@ -4,6 +4,9 @@ addopts=
--doctest-modules
--doctest-glob=pkg_resources/api_tests.txt
-r sxX
+
+ # `pytest-xdist`:
+ -n auto
doctest_optionflags=ALLOW_UNICODE ELLIPSIS
# workaround for warning pytest-dev/pytest#6178
junit_family=xunit2
diff --git a/setup.cfg b/setup.cfg
index 536ec70f..bda5ab6f 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -58,6 +58,7 @@ testing =
paver
pip>=19.1 # For proper file:// URLs support.
jaraco.envs
+ pytest-xdist
docs =
# Keep these in sync with docs/requirements.txt