From eadaf17d910d506a4bda1d548e563585d82c675f Mon Sep 17 00:00:00 2001 From: Ian Fijolek Date: Tue, 10 Apr 2018 11:28:09 -0700 Subject: [PATCH] Add easy viewing of coverage html report --- Makefile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f11638b..972f1d9 100644 --- a/Makefile +++ b/Makefile @@ -25,8 +25,22 @@ upload-test: env .PHONY: clean clean: - rm -fr ./build ./dist ./minitor.egg-info + rm -fr ./build ./minitor.egg-info ./htmlcov ./.coverage ./.pytest_cache ./.tox + +.PHONY: dist-clean +dist-clean: clean + rm -fr ./dist .PHONY: install-hooks install-hooks: tox -e pre-commit -- install -f --install-hooks + +.coverage: + tox + +htmlcov/index.html: .coverage + ./env/bin/coverage html + +.PHONY: open-coverage +open-coverage: htmlcov/index.html + open htmlcov/index.html