From 5f27fa70045b20b0712079fb8e35294eb4614351 Mon Sep 17 00:00:00 2001 From: Sefik Ilkin Serengil Date: Wed, 31 Jan 2024 19:09:24 +0000 Subject: [PATCH] add test coverage support --- .gitignore | 2 ++ Makefile | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 63ebe2c..eaa42ce 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,5 @@ tests/dataset/*.pkl tests/*.ipynb tests/*.csv *.pyc +**/.coverage +**/.coverage.* \ No newline at end of file diff --git a/Makefile b/Makefile index af58c7f..cb8e9ae 100644 --- a/Makefile +++ b/Makefile @@ -2,4 +2,7 @@ test: cd tests && python -m pytest . -s --disable-warnings lint: - python -m pylint deepface/ --fail-under=10 \ No newline at end of file + python -m pylint deepface/ --fail-under=10 + +coverage: + pip install pytest-cov && cd tests && python -m pytest --cov=deepface \ No newline at end of file