Skip to content

Commit

Permalink
Use pytest-xdist to speed up testing
Browse files Browse the repository at this point in the history
  • Loading branch information
tmillenaar committed Oct 23, 2024
1 parent 4e8a705 commit 4028e42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ packages = ["sourcefinder"]
extra-dependencies = [
"pytest",
"pytest-cov",
"pytest-xdist",
]

[tool.hatch.envs.lint]
Expand All @@ -67,7 +68,7 @@ dependencies = [

[tool.pytest.ini_options]
testpaths = ["test"]
addopts = ["--import-mode=importlib", "--cov=sourcefinder", "-q", "-ra"]
addopts = ["--import-mode=importlib", "--cov=sourcefinder", "-q", "-ra", "-n=auto", "--dist=worksteal"]

[tool.black]
include = '\.pyi?$'
Expand Down

0 comments on commit 4028e42

Please sign in to comment.