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 e4ea2e3add4..e94ae26164f 100644 --- a/tox.ini +++ b/tox.ini @@ -52,5 +52,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