API: test coverage init
This commit is contained in:
parent
b24f5c2988
commit
3dc7de4a93
4
.coveragerc
Normal file
4
.coveragerc
Normal file
@ -0,0 +1,4 @@
|
||||
[run]
|
||||
omit =
|
||||
mpwo_api/venv/*
|
||||
mpwo_api/mpwo_api/tests/*
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -9,6 +9,7 @@ __pycache__
|
||||
/mpwo_api/venv/
|
||||
uploads
|
||||
.cache
|
||||
.coverage
|
||||
|
||||
# MPWO_CLIENT
|
||||
###############
|
||||
|
2
Makefile
2
Makefile
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user