Skip to content

Commit

Permalink
add make test-parallel target
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo committed Jun 22, 2024
1 parent 2b52f0d commit e23b8ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ ifndef GITHUB_ACTIONS
coverage \
pylint \
pytest-cov \
pytest-xdist \
rstcheck \
ruff \
teyit \
Expand Down Expand Up @@ -125,6 +126,10 @@ test: ## Run all tests. To run a specific test: do "make test ARGS=pyftpdlib.te
${MAKE} install
$(TEST_PREFIX) $(PYTHON) -m pytest $(PYTEST_ARGS) $(ARGS)

test-parallel: ## Run all tests in parallel.
${MAKE} install
$(TEST_PREFIX) $(PYTHON) -m pytest $(PYTEST_ARGS) -n auto --dist loadgroup $(ARGS)

test-functional: ## Run functional FTP tests.
${MAKE} install
$(TEST_PREFIX) $(PYTHON) -m pytest $(PYTEST_ARGS) $(ARGS) pyftpdlib/test/test_functional.py
Expand Down

0 comments on commit e23b8ee

Please sign in to comment.