Reinstate the possibility to run coverage tests using make cov.
parent
c69d2f1eea
commit
ba7f942657
|
|
@ -1,5 +0,0 @@
|
|||
[run]
|
||||
omit =
|
||||
*/_build_ffi.py
|
||||
*/_build_wolfssl.py
|
||||
*/_ffi.py
|
||||
10
Makefile
10
Makefile
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ build-backend = "setuptools.build_meta:__legacy__"
|
|||
dev = [
|
||||
"mypy",
|
||||
"pytest",
|
||||
"pytest-cov",
|
||||
"ruff",
|
||||
"sphinx",
|
||||
"sphinx-rtd-theme",
|
||||
|
|
|
|||
Loading…
Reference in New Issue