Skip to content

Commit bf15534

Browse files
committed
add coverage
1 parent 568feb0 commit bf15534

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.devcontainer/requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ pylint-django
1313
wily
1414
yapf
1515
sourcery-analytics
16+
coverage

Makefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,15 @@ rebuild: setup makemigrations migrate collectstatic start
7575

7676
.PHONY: test
7777
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} -v 2
78+
${NETBOX_MANAGE_PATH}/manage.py makemigrations ${PLUGIN_NAME} --check
79+
coverage run ${NETBOX_MANAGE_PATH}/manage.py test ${PLUGIN_NAME} -v 2
80+
81+
.PHONY: coverage_report
82+
coverage_report:
83+
coverage report
84+
85+
.PHONY: test_coverage
86+
test_coverage: test coverage_report
8087

8188
#relpatch:
8289
# $(eval GSTATUS := $(shell git status --porcelain))

0 commit comments

Comments
 (0)