-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
25 lines (16 loc) · 738 Bytes
/
Makefile
File metadata and controls
25 lines (16 loc) · 738 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
TEST_ENV := @PYTHONPATH=src:tests:src/common
test:
$(TEST_ENV) python -m unittest discover -s tests -p "test_*.py" -v
testv:
$(TEST_ENV) python -m unittest discover -s tests/test_common/validator -p "test_*.py" -v
test-list:
@PYTHONPATH=src:tests python -m unittest discover -s tests -p "test_*.py" --verbose | grep test_
coverage-run:
@PYTHONPATH=src coverage run --source=src -m unittest discover -s tests -p "test_*.py" -v
coverage-report:
@PYTHONPATH=src coverage report -m
coverage-html:
@PYTHONPATH=src coverage html
coverage: coverage-run coverage-report
coverage-full: coverage-run coverage-report coverage-html
.PHONY: build package test test-list coverage-run coverage-report coverage-html coverage coverage-full