Allow passing addition args, currently used in be-test* targets (#1787)

This commit is contained in:
jbirddog 2024-06-24 08:01:08 -04:00 committed by GitHub
parent d2e005022b
commit 495870660e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -25,6 +25,7 @@ SPIFFWORKFLOW_BACKEND_ENV ?= local_development
BACKEND_SQLITE_FILE ?= src/instance/db_$(SPIFFWORKFLOW_BACKEND_ENV).sqlite3
NODE_MODULES_DIR ?= spiffworkflow-frontend/node_modules
JUST ?=
ARGS ?=
YML_FILES := -f docker-compose.yml \
-f $(BACKEND_DEV_OVERLAY) \
@ -88,10 +89,10 @@ be-sqlite:
$(IN_BACKEND) sqlite3 $(BACKEND_SQLITE_FILE)
be-tests: be-clear-log-file
$(IN_BACKEND) poetry run pytest tests/spiffworkflow_backend/$(JUST)
$(IN_BACKEND) poetry run pytest $(ARGS) tests/spiffworkflow_backend/$(JUST)
be-tests-par: be-clear-log-file
$(IN_BACKEND) poetry run pytest -n auto -x --random-order tests/spiffworkflow_backend/$(JUST)
$(IN_BACKEND) poetry run pytest -n auto -x --random-order $(ARGS) tests/spiffworkflow_backend/$(JUST)
fe-lint-fix:
$(IN_FRONTEND) npm run lint:fix