mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-01-12 19:24:13 +00:00
Allow passing addition args, currently used in be-test* targets (#1787)
This commit is contained in:
parent
d2e005022b
commit
495870660e
5
Makefile
5
Makefile
@ -25,6 +25,7 @@ SPIFFWORKFLOW_BACKEND_ENV ?= local_development
|
|||||||
BACKEND_SQLITE_FILE ?= src/instance/db_$(SPIFFWORKFLOW_BACKEND_ENV).sqlite3
|
BACKEND_SQLITE_FILE ?= src/instance/db_$(SPIFFWORKFLOW_BACKEND_ENV).sqlite3
|
||||||
NODE_MODULES_DIR ?= spiffworkflow-frontend/node_modules
|
NODE_MODULES_DIR ?= spiffworkflow-frontend/node_modules
|
||||||
JUST ?=
|
JUST ?=
|
||||||
|
ARGS ?=
|
||||||
|
|
||||||
YML_FILES := -f docker-compose.yml \
|
YML_FILES := -f docker-compose.yml \
|
||||||
-f $(BACKEND_DEV_OVERLAY) \
|
-f $(BACKEND_DEV_OVERLAY) \
|
||||||
@ -88,10 +89,10 @@ be-sqlite:
|
|||||||
$(IN_BACKEND) sqlite3 $(BACKEND_SQLITE_FILE)
|
$(IN_BACKEND) sqlite3 $(BACKEND_SQLITE_FILE)
|
||||||
|
|
||||||
be-tests: be-clear-log-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
|
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:
|
fe-lint-fix:
|
||||||
$(IN_FRONTEND) npm run lint:fix
|
$(IN_FRONTEND) npm run lint:fix
|
||||||
|
Loading…
x
Reference in New Issue
Block a user