Skip to content

Commit

Permalink
Add coverage config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jelmer committed Feb 5, 2017
1 parent de1f93e commit 2341eaf
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[run]
branch = True

[report]
exclude_lines =
raise NotImplementedError
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@ docs/tutorial/index.html
dulwich.egg-info/
.tox/
.idea/
.coverage
htmlcov/
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ SETUP = $(PYTHON) setup.py
PYDOCTOR ?= pydoctor
TESTRUNNER ?= unittest
RUNTEST = PYTHONHASHSEED=random PYTHONPATH=.:$(PYTHONPATH) $(PYTHON) -m $(TESTRUNNER) $(TEST_OPTIONS)
COVERAGE = python3-coverage

DESTDIR=/

Expand Down Expand Up @@ -58,3 +59,9 @@ pep8:

before-push: check
git diff origin/master | $(PEP8) --diff

coverage:
$(COVERAGE) run --source=dulwich -m unittest dulwich.tests.test_suite dulwich.contrib.test_suite

coverage-html: coverage
$(COVERAGE) html

0 comments on commit 2341eaf

Please sign in to comment.