forked from cartography-cncf/cartography
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (16 loc) · 859 Bytes
/
Makefile
File metadata and controls
21 lines (16 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
PYTEST_COV_FLAGS := --cov=cartography --cov-report term-missing
PYTEST_COV_BRANCH_FLAGS := $(PYTEST_COV_FLAGS) --cov-branch
test: test_lint test_unit test_integration
test_lint:
uv run --frozen pre-commit run --all-files --show-diff-on-failure
test_unit:
uv run --frozen pytest -vvv $(PYTEST_COV_FLAGS) tests/unit
test_integration:
uv run --frozen pytest -vvv $(PYTEST_COV_FLAGS) tests/integration
test_coverage:
rm -f .coverage .coverage.unit .coverage.integration coverage.xml
COVERAGE_FILE=.coverage.unit uv run --frozen pytest -vvv $(PYTEST_COV_BRANCH_FLAGS) tests/unit
COVERAGE_FILE=.coverage.integration uv run --frozen pytest -vvv $(PYTEST_COV_BRANCH_FLAGS) tests/integration
uv run --frozen coverage combine .coverage.unit .coverage.integration
uv run --frozen coverage xml -o coverage.xml
uv run --frozen coverage report --show-missing