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

View File

@ -25,8 +25,22 @@ upload-test: env
.PHONY: clean .PHONY: clean
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 .PHONY: install-hooks
install-hooks: install-hooks:
tox -e pre-commit -- install -f --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