Add easy viewing of coverage html report

This commit is contained in:
IamTheFij 2018-04-10 11:28:09 -07:00
parent 336585d258
commit eadaf17d91
1 changed files with 15 additions and 1 deletions

View File

@ -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