mirror of
https://github.com/ziirish/burp-ui.git
synced 2026-05-22 06:05:33 -06:00
add: docstring coverage
This commit is contained in:
parent
367c25ed16
commit
e976809a84
1 changed files with 13 additions and 4 deletions
17
Makefile
17
Makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue