Reinstate the possibility to run coverage tests using make cov.

pull/136/head
Robert de Vries 2026-07-05 16:35:30 +02:00
parent c69d2f1eea
commit ba7f942657
3 changed files with 6 additions and 10 deletions

View File

@ -1,5 +0,0 @@
[run]
omit =
*/_build_ffi.py
*/_build_wolfssl.py
*/_ffi.py

View File

@ -21,7 +21,7 @@ for line in sys.stdin:
print("%-20s %s" % (target, help))
endef
export PRINT_HELP_PYSCRIPT
BROWSER := python -c "$$BROWSER_PYSCRIPT"
BROWSER := uv run python -c "$$BROWSER_PYSCRIPT"
help:
@python -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST)
@ -63,10 +63,10 @@ test-all: ## run tests on every Python version with tox
check-all: test-all ## run tests on every Python version with tox
cov: install ## check code coverage quickly with the default Python
py.test --cov-config .coveragerc --cov=wolfcrypt tests
coverage report -m
coverage html
cov: ## check code coverage quickly with the default Python
uv run pytest --cov=wolfcrypt tests
uv run coverage report -m
uv run coverage html
$(BROWSER) htmlcov/index.html
docs: install ## generate Sphinx HTML documentation, including API docs

View File

@ -37,6 +37,7 @@ build-backend = "setuptools.build_meta:__legacy__"
dev = [
"mypy",
"pytest",
"pytest-cov",
"ruff",
"sphinx",
"sphinx-rtd-theme",