Skip to content

Commit

Permalink
Parallelize the test runs via pytest-xdist
Browse files Browse the repository at this point in the history
Resolves pypa#2458
  • Loading branch information
webknjaz committed Nov 18, 2020
1 parent 5cf3865 commit 48d0a8c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
[pytest]
addopts=--doctest-modules --doctest-glob=pkg_resources/api_tests.txt -r sxX
addopts=
--doctest-modules --doctest-glob=pkg_resources/api_tests.txt
-r sxX

# `pytest-xdist`:
-n auto
norecursedirs=dist build .tox .eggs
doctest_optionflags=ELLIPSIS ALLOW_UNICODE
filterwarnings =
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ tests =
pip>=19.1 # For proper file:// URLs support.
jaraco.envs
jaraco.test >= 3.1.1; python_version >= "3.6"
pytest-xdist

docs =
# Keep these in sync with docs/requirements.txt
Expand Down

0 comments on commit 48d0a8c

Please sign in to comment.