-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinclude.mk
More file actions
27 lines (24 loc) · 1005 Bytes
/
include.mk
File metadata and controls
27 lines (24 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
##############################################################################
# Custom Makefile targets
# This file is included by the mxmake-generated Makefile and will be preserved
# during mxmake updates.
##############################################################################
##############################################################################
# Coverage targets
##############################################################################
.PHONY: coverage
coverage: $(PACKAGES_TARGET)
@echo "Run tests with coverage"
@coverage run -m pytest
@coverage combine
@coverage report --show-missing
.PHONY: coverage-html
coverage-html: $(PACKAGES_TARGET)
@echo "Run tests with coverage and generate HTML report"
@coverage run -m pytest
@coverage combine
@coverage html
@echo "Opening coverage report..."
@which xdg-open > /dev/null && xdg-open htmlcov/index.html || \
which open > /dev/null && open htmlcov/index.html || \
echo "Open htmlcov/index.html in your browser"