Skip to content

Commit 23d8207

Browse files
authored
Add pytest-xdist dependency and -n auto option (#637)
1 parent 1d9f513 commit 23d8207

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ def _get_arrow_lib_as_linker_input(self):
263263
'pytest-cov',
264264
'pytest-rerunfailures',
265265
'pytest-timeout',
266+
'pytest-xdist',
266267
'coverage',
267268
'pexpect',
268269
'mock',

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ setenv =
4646
unit-integ: SNOWFLAKE_TEST_TYPE = (unit or integ)
4747
!unit-!integ: SNOWFLAKE_TEST_TYPE = (unit or integ)
4848
unit: SNOWFLAKE_TEST_TYPE = unit
49+
unit: SNOWFLAKE_PYTEST_OPTS = {env:SNOWFLAKE_PYTEST_OPTS:} -n auto
4950
integ: SNOWFLAKE_TEST_TYPE = integ
5051
# Add common parts into pytest command
5152
SNOWFLAKE_PYTEST_COV_LOCATION = {env:JUNIT_REPORT_DIR:{toxworkdir}}/junit.{envname}-{env:cloud_provider:dev}.xml
@@ -87,6 +88,7 @@ deps =
8788
pytest-cov
8889
pytest-rerunfailures
8990
pytest-timeout
91+
pytest-xdist
9092
mock
9193
skip_install = True
9294
setenv = {[testenv]setenv}

0 commit comments

Comments
 (0)