Merge pull request #57 from eReuse/feature/add_coverage
adding coverage for test in github
This commit is contained in:
commit
d2396fbf2f
6
.github/workflows/flask.yml
vendored
6
.github/workflows/flask.yml
vendored
|
@ -49,7 +49,7 @@ jobs:
|
|||
pip install virtualenv
|
||||
virtualenv env
|
||||
source env/bin/activate
|
||||
pip install flake8 pytest
|
||||
pip install flake8 pytest coverage
|
||||
pip install -r requirements.txt
|
||||
|
||||
- name: Prepare database
|
||||
|
@ -67,5 +67,7 @@ jobs:
|
|||
- name: Run Tests
|
||||
run: |
|
||||
source env/bin/activate
|
||||
pytest -m mvp --maxfail=5 tests/
|
||||
coverage run --source='ereuse_devicehub' env/bin/pytest -m mvp --maxfail=5 tests/
|
||||
coverage report --include='ereuse_devicehub/*'
|
||||
coverage xml
|
||||
|
||||
|
|
Reference in a new issue