Skip to content

Commit 745de2d

Browse files
committed
use xdist for faster testing
1 parent a067282 commit 745de2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ RELEASEDIR = $(PROJECTNAME)-$(VERSION).$(RELEASE)
66
EGGINFODIR = $(PROJECTNAME).egg-info
77
DOCDIR = doc
88
COVDIR = htmlcov
9+
TEST_THREADS ?= 4
910

1011
DOC_URL=http://alleninstitute.github.io/AllenSDK
1112
#ZIP_FILENAME=AllenSDK-master.zip
@@ -38,7 +39,7 @@ pypi_deploy:
3839
python setup.py sdist upload --repository https://testpypi.python.org/pypi
3940

4041
pytest_lax:
41-
py.test -s --boxed --cov=allensdk --cov-config coveragerc --cov-report html --junitxml=test-reports/test.xml
42+
py.test -s --boxed --cov=allensdk --cov-config coveragerc --cov-report html --junitxml=test-reports/test.xml -n $(TEST_THREADS) --durations=0
4243

4344
pytest: pytest_lax
4445

0 commit comments

Comments
 (0)