Skip to content

Commit

Permalink
Add pytest-xdist to optional deps, run unit tests in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-fcampbell committed Oct 23, 2024
1 parent f042ff0 commit f383a37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
9 changes: 2 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ development = [
"pre-commit>=3.5.0",
"pytest==8.3.3",
"pytest-randomly==3.15.0",
"pytest-xdist==3.6.1",
"syrupy==4.7.2",
"factory-boy==3.3.1",
"Faker==30.3.0",
Expand Down Expand Up @@ -93,7 +94,7 @@ features = ["development"]
[tool.hatch.envs.default.scripts]
test = ["pytest tests/"]
test-cov = [
"coverage run --source=snowflake.cli --module pytest tests/ ",
"coverage run --source=snowflake.cli --module pytest -n auto tests/ ",
"coverage run --source=snowflake.cli --module pytest -m loaded_modules tests/ ",
"coverage report",
]
Expand Down Expand Up @@ -130,12 +131,6 @@ test = ["pytest -m performance"]

[tool.hatch.envs.integration]
template = "integration"
pre-install-commands = [
# Disabled due to repo migration
# "pip install test_external_plugins/snowpark_hello_single_command",
# "pip install test_external_plugins/multilingual_hello_command_group",
"pip install pytest-xdist",
]
features = ["development"]

[tool.hatch.envs.integration.scripts]
Expand Down
1 change: 1 addition & 0 deletions snyk/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ coverage==7.6.3
pre-commit>=3.5.0
pytest==8.3.3
pytest-randomly==3.15.0
pytest-xdist==3.6.1
syrupy==4.7.2
factory-boy==3.3.1
Faker==30.3.0

0 comments on commit f383a37

Please sign in to comment.