Permalink
Browse files

Add target for coverage html report

  • Loading branch information...
ymattw committed Feb 25, 2013
1 parent c456c8d commit 0e6c439fb3864baa8427bfd614ed0d3d94686b49
Showing with 8 additions and 3 deletions.
  1. +1 −0 .gitignore
  2. +7 −3 Makefile
View
@@ -2,6 +2,7 @@
*~
*.tmp
/.coverage
+/htmlcov/
/MANIFEST
/build/
/cdiff.egg-info/
View
@@ -4,7 +4,7 @@ TESTPYPI = https://testpypi.python.org/pypi
PYPI = https://pypi.python.org/pypi
.PHONY: dogfood clean build dist-test dist \
- test test3 cov cov3 reg reg3 profile profile3
+ test test3 cov cov3 html reg reg3 profile profile3
dogfood:
./cdiff.py
@@ -16,11 +16,15 @@ test3: cov3 reg3
cov:
coverage run tests/test_cdiff.py
- coverage report --include cdiff.py --show-missing
+ coverage report --show-missing
cov3:
python3 `which coverage` run tests/test_cdiff.py
- python3 `which coverage` report --include cdiff.py --show-missing
+ python3 `which coverage` report --show-missing
+
+html:
+ coverage html
+ python -m webbrowser -n "file://$(shell pwd)/htmlcov/index.html"
reg:
tests/regression.sh

0 comments on commit 0e6c439

Please sign in to comment.