Simplify coverage setup.

This commit is contained in:
Jannis Leidel 2015-01-06 21:20:52 +01:00
parent 9dd8ba2a6e
commit a8643a1af5
2 changed files with 8 additions and 3 deletions

6
.coveragerc Normal file
View file

@ -0,0 +1,6 @@
[run]
source = configurations
branch = 1
[report]
omit = *tests*,*migrations*

View file

@ -46,6 +46,5 @@ commands = flake8 configurations --ignore=E501,E127,E128,E124
[testenv:coverage-py27-dj16]
commands = coverage erase
coverage run --source=. manage.py test -v2 {posargs:tests}
coverage report -m configurations/*py
coverage html configurations/*py
coverage run manage.py test -v2 {posargs:tests}
coverage report