Skip to content

Commit

Permalink
Add xdist and random order pytest plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
cutoffthetop committed Jan 23, 2024
1 parent b882b56 commit 1cafaf3
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 41 deletions.
5 changes: 3 additions & 2 deletions mex.bat
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ echo linting all files
pre-commit run --all-files
if %errorlevel% neq 0 exit /b %errorlevel%

@REM run the pytest test suite with unit and integration tests
@REM run the pytest test suite with unit and integration tests in random order
@REM distributed across all available CPU cores
echo running all tests
poetry run pytest
poetry run pytest --random-order-bucket=global --numprocesses=auto --dist=worksteal
exit /b %errorlevel%


Expand Down
90 changes: 52 additions & 38 deletions poetry.lock

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

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ mypy = "^1.8.0"
pandas-stubs = "^2.1.4"
pytest = "^7.4.4"
pytest-cov = "^4.1.0"
pytest-random-order = "^1.1.1"
pytest-xdist = "^3.5.0"
ruff = "^0.1.13"
snakeviz = "^2.2.0"
sphinx = "^7.2.6"
types-ldap3 = "^2.9.13"
types-pytz = "^2023.3.1"
Expand Down

0 comments on commit 1cafaf3

Please sign in to comment.