Skip to content

Commit b59fa4d

Browse files
chore: Adding pattern command to makefile to easily test single files… (#5750)
chore: Adding pattern command to makefile to easily test single files/tests Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
1 parent 7a99166 commit b59fa4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ benchmark-python-local: ## Run integration + benchmark tests for Python (local d
150150

151151
##@ Tests
152152

153-
test-python-unit: ## Run Python unit tests
154-
python -m pytest -n 8 --color=yes sdk/python/tests
153+
test-python-unit: ## Run Python unit tests (use pattern=<pattern> to filter tests, e.g., pattern=milvus, pattern=test_online_retrieval.py, pattern=test_online_retrieval.py::test_get_online_features_milvus)
154+
python -m pytest -n 8 --color=yes $(if $(pattern),-k "$(pattern)") sdk/python/tests
155155

156156
test-python-integration: ## Run Python integration tests (CI)
157157
python -m pytest --tb=short -v -n 8 --integration --color=yes --durations=10 --timeout=1200 --timeout_method=thread --dist loadgroup \

0 commit comments

Comments
 (0)