adds test coverage support

pull/1/head
Moisés Guimarães 2018-02-26 22:13:15 +01:00
parent b2d93c219c
commit d71cbdc76f
2 changed files with 7 additions and 2 deletions

5
.coveragerc 100644
View File

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

View File

@ -60,8 +60,8 @@ test-all: ## run tests on every Python version with tox
check-all: test-all ## run tests on every Python version with tox
coverage: ## check code coverage quickly with the default Python
coverage run --source wolfcrypt -m pytest
cov: install ## check code coverage quickly with the default Python
py.test --cov-config .coveragerc --cov=wolfcrypt tests
coverage report -m
coverage html
$(BROWSER) htmlcov/index.html