Skip to content

Commit

Permalink
Comment on pytest --dist=worksteal usage (#1973)
Browse files Browse the repository at this point in the history
Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
  • Loading branch information
atugushev and webknjaz committed Aug 21, 2023
1 parent 04d2235 commit 8fe2445
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ disallow_untyped_defs = false
addopts = [
# `pytest-xdist`:
"--numprocesses=auto",

# The `worksteal` distribution method is useful if the run times of different tests vary greatly,
# as it ensures more efficient resource usage, improving the performance of testing.
"--dist=worksteal",

# Show 20 slowest invocations:
Expand Down

0 comments on commit 8fe2445

Please sign in to comment.