-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
28 lines (22 loc) · 962 Bytes
/
Makefile
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
28
.PHONY: fmt
fmt:
poetry run black src/ tests/
poetry run isort --profile=black src/ tests/
.PHONY: fmtxml
fmtxml: fmt
find tests/test_files -type f -name "*.xml" -exec echo "- {}" \; -exec poetry run xmlformat --indent 4 --overwrite {} \;
.PHONY: unittest
unittest: fmt
poetry run coverage run --data-file cov/unittest.coverage -m pytest -m "not integration and not authenticated" -vv
.PHONY: integration
integration: fmt
poetry run coverage run --data-file cov/integration.coverage -m pytest -m "integration" -vv
.PHONY: authenticated
authenticated: fmt
poetry run coverage run --data-file cov/authenticated.coverage -m pytest -m "authenticated" -vv
.PHONY: test
test: unittest integration authenticated
.PHONY: coverage
coverage:
poetry run coverage combine --keep --data-file cov/.coverage cov/*.coverage
poetry run coverage report --show-missing --data-file cov/.coverage --omit "tests/*,src/boinc_client/clients/rpc_client.py" --fail-under=100