Skip to content

Commit

Permalink
Merge pull request #4141 from stsewd/ignore-migrations-coverage
Browse files Browse the repository at this point in the history
Ignore migrations from coverage report
  • Loading branch information
ericholscher authored May 24, 2018
2 parents 72e6974 + c55322d commit c39c770
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[run]
omit =
*/**/migrations/*
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ deps =
whitelist_externals = echo
commands =
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

0 comments on commit c39c770

Please sign in to comment.