Ignore migrations from coverage report

remove-default-role
Santos Gallegos 2018-05-24 10:44:11 -05:00
parent 076539117f
commit c55322d89d
2 changed files with 4 additions and 1 deletions

3
.coveragerc Normal file
View File

@ -0,0 +1,3 @@
[run]
omit =
*/**/migrations/*

View File

@ -52,5 +52,5 @@ deps =
whitelist_externals = echo whitelist_externals = echo
commands = commands =
py.test --disable-pytest-warnings \ py.test --disable-pytest-warnings \
--cov-report=term --cov-report=html --cov=. {posargs} --cov-report=term --cov-report=html --cov-config {toxinidir}/.coveragerc --cov=. {posargs}
echo Annotated HTML coverage report is in {toxinidir}/readthedocs/htmlcov/index.html echo Annotated HTML coverage report is in {toxinidir}/readthedocs/htmlcov/index.html