adjust coverage generation a bit
This commit is contained in:
parent
5166e69265
commit
fb68f9a820
6
Makefile
6
Makefile
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user