Commit 03aa08c9 by Oleg Marshev

Add diff coverage.

parent 296d3a07
PACKAGES = notesserver notesapi PACKAGES = notesserver notesapi
test: clean test: clean test-local coverage
test-local:
./manage.py test --settings=notesserver.settings.test --with-coverage \ ./manage.py test --settings=notesserver.settings.test --with-coverage \
--exclude-dir=notesserver/settings --cover-inclusive --cover-branches \ --exclude-dir=notesserver/settings --cover-inclusive --cover-branches \
--cover-html --cover-html-dir=coverage/html/ \ --cover-html --cover-html-dir=coverage/html/ \
...@@ -20,3 +22,12 @@ clean: ...@@ -20,3 +22,12 @@ clean:
quality: quality:
pep8 --config=.pep8 $(PACKAGES) pep8 --config=.pep8 $(PACKAGES)
pylint $(PACKAGES) pylint $(PACKAGES)
diff-coverage:
diff-cover coverage/coverage.xml --html-report coverage/diff_cover.html
diff-quality:
diff-quality --violations=pep8 --html-report coverage/diff_quality_pep8.html
diff-quality --violations=pylint --html-report coverage/diff_quality_pylint.html
coverage: diff-coverage diff-quality
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment