From c55322d89d312349962e527f01cf60a2a77fa69a Mon Sep 17 00:00:00 2001 From: Santos Gallegos Date: Thu, 24 May 2018 10:44:11 -0500 Subject: [PATCH] Ignore migrations from coverage report --- .coveragerc | 3 +++ tox.ini | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .coveragerc 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