adjust coverage generation a bit

pull/80/merge
Martin Zimmermann 10 years ago
parent 5166e69265
commit fb68f9a820

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

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

Loading…
Cancel
Save