Skip to content

Commit

Permalink
Speed up tests with xdist
Browse files Browse the repository at this point in the history
This helps speed up tests quite a bit by using all the CPUs!
  • Loading branch information
kruton committed May 2, 2022
1 parent a79affb commit 6204bfa
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 2 deletions.
55 changes: 54 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ pytest-mock = "^3.7.0"
requests = "^2.25.1"
flake8 = "^4.0.1"
pylint = "^2.6.0"
pytest-xdist = "^2.5.0"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ basepython = python3
[testenv]
commands =
poetry install
poetry run pytest {posargs}
poetry run pytest {posargs:-n auto}
whitelist_externals = poetry

[testenv:black]
Expand Down

0 comments on commit 6204bfa

Please sign in to comment.