add test coverage support

This commit is contained in:
Sefik Ilkin Serengil 2024-01-31 19:09:24 +00:00
parent 35025cdf6e
commit 5f27fa7004
2 changed files with 6 additions and 1 deletions

2
.gitignore vendored
View File

@ -11,3 +11,5 @@ tests/dataset/*.pkl
tests/*.ipynb
tests/*.csv
*.pyc
**/.coverage
**/.coverage.*

View File

@ -2,4 +2,7 @@ test:
cd tests && python -m pytest . -s --disable-warnings
lint:
python -m pylint deepface/ --fail-under=10
python -m pylint deepface/ --fail-under=10
coverage:
pip install pytest-cov && cd tests && python -m pytest --cov=deepface