add: docstring coverage

This commit is contained in:
ziirish 2015-11-12 19:07:51 +01:00
parent 367c25ed16
commit e976809a84

View file

@ -1,4 +1,4 @@
.PHONY: all test clean_coverage clean pep8 pyflakes check
.PHONY: all test clean_coverage doc doc_coverage clean pep8 pyflakes check
all:
@echo 'test run the unit tests'
@ -7,13 +7,22 @@ all:
@echo 'check make sure you are ready to commit'
@echo 'clean cleanup the source tree'
doc_coverage:
@echo 'Running docstring coverage...'
@docstring-coverage burpui
test: clean_coverage
@echo 'Running all tests...'
@nosetests --with-coverage --cover-package=burpui test/test_burpui.py
doc:
@echo 'Generating documentation...'
@cd docs && make html
clean:
@find . -type d -name "__pycache__" -exec rm -rf "{}" \;
@find . -type f -name "*.pyc" -delete
@find . -type d -name "__pycache__" -exec rm -rf "{}" \; || true
@find . -type f -name "*.pyc" -delete || true
@rm -rf build dist burp_ui.egg-info docs/_build || true
clean_coverage:
@rm -f .coverage
@ -26,4 +35,4 @@ pyflakes:
@echo 'Running pyflakes...'
@pyflakes burpui
check: pep8 pyflakes test
check: pep8 pyflakes doc_coverage test