Skip to content

Commit

Permalink
Allow passing addition args, currently used in be-test* targets (sart…
Browse files Browse the repository at this point in the history
  • Loading branch information
jbirddog authored Jun 24, 2024
1 parent d2e0050 commit 4958706
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4958706

Please sign in to comment.