Skip to content

Commit b1999e7

Browse files
committed
add test option to Makefile
1 parent 141a146 commit b1999e7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,13 @@ start:
7070
.PHONY: all ## Run all PLUGIN DEV targets
7171
all: setup makemigrations migrate collectstatic initializers start
7272

73-
#.PHONY: test
74-
#test:
75-
# ${VENV_PY_PATH} /opt/netbox/netbox/manage.py runserver test ${PLUGIN_NAME}
73+
.PHONY: rebuild ## Run PLUGIN DEV targets to rebuild
74+
rebuild: setup makemigrations migrate collectstatic start
75+
76+
.PHONY: test
77+
test: setup
78+
${VENV_PY_PATH} ${NETBOX_MANAGE_PATH}/manage.py makemigrations ${PLUGIN_NAME} --check
79+
${VENV_PY_PATH} ${NETBOX_MANAGE_PATH}/manage.py test ${PLUGIN_NAME}
7680

7781
#relpatch:
7882
# $(eval GSTATUS := $(shell git status --porcelain))

0 commit comments

Comments
 (0)