API: test coverage init

This commit is contained in:
Sam 2018-05-12 17:10:22 +02:00
parent b24f5c2988
commit 3dc7de4a93
4 changed files with 8 additions and 1 deletions

4
.coveragerc Normal file
View File

@ -0,0 +1,4 @@
[run]
omit =
mpwo_api/venv/*
mpwo_api/mpwo_api/tests/*

1
.gitignore vendored
View File

@ -9,6 +9,7 @@ __pycache__
/mpwo_api/venv/
uploads
.cache
.coverage
# MPWO_CLIENT
###############

View File

@ -48,7 +48,7 @@ test-e2e:
$(NPM) test
test-python:
$(PYTEST) mpwo_api
$(PYTEST) mpwo_api --cov-config .coveragerc --cov=mpwo_api
upgrade-db:
$(FLASK) db upgrade --directory $(MIGRATIONS)

View File

@ -4,6 +4,7 @@ attrs==17.4.0
bcrypt==3.1.4
cffi==1.11.2
click==6.7
coverage==4.5.1
execnet==1.5.0
flake8==3.5.0
flake8-isort==2.2.2
@ -29,6 +30,7 @@ pyflakes==1.6.0
PyJWT==1.6.1
pytest==3.3.2
pytest-cache==1.0
pytest-cov==2.5.1
pytest-flake8==0.9.1
pytest-isort==0.1.0
pytest-runner==3.0