adjust coverage generation a bit

This commit is contained in:
Martin Zimmermann 2014-03-28 12:18:44 +01:00
parent 5166e69265
commit fb68f9a820
2 changed files with 5 additions and 3 deletions

View File

@ -5,6 +5,8 @@ ISSO_CSS_DST := isso/css/isso.css
ISSO_CSS_SRC := isso/css/isso.scss
ISSO_CSS_SRC_DEPS := $(shell find isso/css -type f | grep .scss)
ISSO_PY_SRC := $(shell git ls-files | grep .py)
RST := $(shell find docs/ -type f -name '*.rst')
MAN := man/man1/isso.1 man/man5/isso.conf.5
@ -37,12 +39,12 @@ ${CSS}: docs/_static/css/site.scss
site: $(RST) $(WWW) $(CSS)
cd docs && sphinx-build -b dirhtml . _build/html
coverage:
coverage: $(ISSO_PY_SRC)
nosetests --with-doctest --with-coverage --cover-package=isso \
--cover-html isso/ specs/
clean:
rm -f $(MAN) $(CSS) $(ISSO_JS_DST) $(ISSO_CSS_DST)
.PHONY: clean site man init js css
.PHONY: clean site man init js css coverage

View File

@ -20,7 +20,7 @@ from werkzeug.datastructures import Headers
from isso.compat import string_types
def host(environ):
def host(environ): # pragma: no cover
"""
Reconstruct host from environment. A modified version
of http://www.python.org/dev/peps/pep-0333/#url-reconstruction