Skip to content

Commit

Permalink
Add pytest-xdist dependency and -n auto option (#637)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-stan authored Feb 26, 2021
1 parent b593137 commit eda3903
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ def _get_arrow_lib_as_linker_input(self):
'pytest-cov',
'pytest-rerunfailures',
'pytest-timeout',
'pytest-xdist',
'coverage',
'pexpect',
'mock',
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ setenv =
unit-integ: SNOWFLAKE_TEST_TYPE = (unit or integ)
!unit-!integ: SNOWFLAKE_TEST_TYPE = (unit or integ)
unit: SNOWFLAKE_TEST_TYPE = unit
unit: SNOWFLAKE_PYTEST_OPTS = {env:SNOWFLAKE_PYTEST_OPTS:} -n auto
integ: SNOWFLAKE_TEST_TYPE = integ
# Add common parts into pytest command
SNOWFLAKE_PYTEST_COV_LOCATION = {env:JUNIT_REPORT_DIR:{toxworkdir}}/junit.{envname}-{env:cloud_provider:dev}.xml
Expand Down Expand Up @@ -87,6 +88,7 @@ deps =
pytest-cov
pytest-rerunfailures
pytest-timeout
pytest-xdist
mock
skip_install = True
setenv = {[testenv]setenv}
Expand Down

0 comments on commit eda3903

Please sign in to comment.