Skip to content

Commit

Permalink
Add target for coverage html report
Browse files Browse the repository at this point in the history
  • Loading branch information
ymattw committed Feb 25, 2013
1 parent c456c8d commit 0e6c439
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,6 +2,7 @@
*~
*.tmp
/.coverage
/htmlcov/
/MANIFEST
/build/
/cdiff.egg-info/
Expand Down
10 changes: 7 additions & 3 deletions Makefile
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0e6c439

Please sign in to comment.