diff --git a/Makefile b/Makefile index 157cbcea..6b9b4b42 100644 --- a/Makefile +++ b/Makefile @@ -78,3 +78,10 @@ clean: rm -rf dist; rm -rf src/sparsezoo.egg-info; find $(PYCHECKDIRS) | grep -E "(__pycache__|\.pyc|\.pyo)" | xargs rm -rf; + + +coverage-report: + pytest --cov=sparsezoo --cov-report json + +coverage-badge: + coverage-badge -f -o ./.meta/coverage_badge.svg diff --git a/setup.py b/setup.py index 95aa8da6..fa028273 100644 --- a/setup.py +++ b/setup.py @@ -69,6 +69,8 @@ "pytest>=6.0.0", "wheel>=0.36.2", "matplotlib>=3.0.0", + "pytest-cov==4.1.0", + "coverage-badge==1.1.0", ] _docs_deps = [