diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 00000000000..4d6fe4be30f --- /dev/null +++ b/.coveragerc @@ -0,0 +1,3 @@ +[run] +omit = + */**/migrations/* diff --git a/tox.ini b/tox.ini index c082a6d923e..eb20573b379 100644 --- a/tox.ini +++ b/tox.ini @@ -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