Skip to content

Commit

Permalink
coverage fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MrYoda committed Jan 13, 2016
1 parent c458d55 commit 1233f48
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
12 changes: 12 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[run]
omit =
*/tests*
*/migrations/*
source = django_hitcounter

[report]
exclude_lines =
pragma: no cover
def __repr__
raise NotImplementedError
if __name__ == .__main__.:
9 changes: 5 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ commands =

[testenv:coverage]
basepython: python3.4
commands =
coverage run --branch --omit={envdir}/*,tests/*.py,*/migrations/*.py tests/manage.py test
coveralls
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
deps =
coverage
coveralls
Django>=1.9,<1.10
Django>=1.9,<1.10
commands =
coverage run tests/manage.py test
coveralls

0 comments on commit 1233f48

Please sign in to comment.