Commit c5db94e9 authored by Lars Kruse's avatar Lars Kruse

Makefile: add 'coverage_py' target

parent d813903b
......@@ -13,6 +13,7 @@ stadt/settings/
# debian shizzle
......@@ -43,3 +43,10 @@ test_py: virtualenv_check
.PHONY: test_js
test_js: $(DIR_NODE) lint_js
$(RUN_NODE) "$(BIN_NODE_PKG)" run test
.PHONY: report-python-coverage
coverage_py: virtualenv_check
STADTGESTALTEN_PRESET=test python -m coverage run -m manage test
python -m coverage report
python -m coverage html --directory="$(DIR_BUILD)/coverage-report"
@echo "Coverage Report Location: file://$(realpath $(DIR_BUILD))/coverage-report/index.html"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment