From e23b8ee199cb3a624d7b775681f7eb7da5c5cc3a Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Sat, 22 Jun 2024 11:37:26 +0200 Subject: [PATCH] add `make test-parallel` target --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index ea341678..65d3cdff 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,7 @@ ifndef GITHUB_ACTIONS coverage \ pylint \ pytest-cov \ + pytest-xdist \ rstcheck \ ruff \ teyit \ @@ -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