File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -13,3 +13,4 @@ pylint-django
13
13
wily
14
14
yapf
15
15
sourcery-analytics
16
+ coverage
Original file line number Diff line number Diff line change @@ -75,8 +75,15 @@ rebuild: setup makemigrations migrate collectstatic start
75
75
76
76
.PHONY : test
77
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} -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
80
87
81
88
# relpatch:
82
89
# $(eval GSTATUS := $(shell git status --porcelain))
You can’t perform that action at this time.
0 commit comments