Skip to content

Commit a641bfc

Browse files
committed
Restore makefiles
1 parent 6abae7c commit a641bfc

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

scripts/common-service.Makefile

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,8 @@ info: ## displays service info
136136
#
137137

138138
.PHONY: _run-test-dev _run-test-ci
139-
# Use OVERRIDE_TEST_TARGET to override the default test target
140-
# Use TEST_DISABLE_PDB to disable pdb in these tests
141-
TEST_TARGET := $(if $(OVERRIDE_TEST_TARGET), $(OVERRIDE_TEST_TARGET), $(if $(target),$(target),$(CURDIR)/tests/unit))
142-
# Use TEST_DISABLE_PDB to disable pdb in these tests
143-
PDB_OPTION := $(if $(filter-out 0,$(TEST_DISABLE_PDB)),,--pdb)
144-
# Use TEST_ENABLE_TESTIT to enable testit in these tests
145-
TESTIT_OPTION := $(if $(filter-out 0,$(TEST_ENABLE_TESTIT)),-m testit,)
146139

140+
TEST_TARGET := $(if $(target),$(target),$(CURDIR)/tests/unit)
147141
PYTEST_ADDITIONAL_PARAMETERS := $(if $(pytest-parameters),$(pytest-parameters),)
148142
_run-test-dev: _check_venv_active
149143
# runs tests for development (e.g w/ pdb)
@@ -159,8 +153,7 @@ _run-test-dev: _check_venv_active
159153
--failed-first \
160154
--junitxml=junit.xml -o junit_family=legacy \
161155
--keep-docker-up \
162-
$(PDB_OPTION) \
163-
$(TESTIT_OPTION) \
156+
--pdb \
164157
-vv \
165158
$(PYTEST_ADDITIONAL_PARAMETERS) \
166159
$(TEST_TARGET)

tests/public-api/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ install-dev install-prod install-ci: _check_venv_active ## install app in develo
2626

2727

2828
.PHONY: test-dev
29-
PUBLICAPI_TEST_TARGET := $(if $(OVERRIDE_TEST_TARGET), $(OVERRIDE_TEST_TARGET), $(CURDIR))
3029
test-dev: ## runs tests with --keep-docker-up, --pdb and --ff
3130
# WARNING:
3231
# - do not forget to build latest changes images
@@ -39,8 +38,8 @@ test-dev: ## runs tests with --keep-docker-up, --pdb and --ff
3938
--failed-first \
4039
--durations=10 \
4140
--asyncio-mode=auto \
42-
$(PDB_OPTION) \
43-
$(PUBLICAPI_TEST_TARGET)
41+
--pdb \
42+
$(CURDIR)
4443

4544

4645
.PHONY: test-ci

0 commit comments

Comments
 (0)