summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRamiro Morales <cramm0@gmail.com>2013-08-25 22:29:43 -0300
committerRamiro Morales <cramm0@gmail.com>2013-08-25 22:29:43 -0300
commit51a9a5980af3b4762d09c4aa4551d370a1b8b9a8 (patch)
treeda6dfb3338368bcc79e448e4fc73bd3395159a5b
parent72712755c46c787c99dd194c7ec634bd43600567 (diff)
downloaddjango-51a9a5980af3b4762d09c4aa4551d370a1b8b9a8.tar.gz
Made coverage ignore files without associated source code.
This only affests reporting not data collection and allows coverage.py to succesfully finish the generation of e.g. the HTML report. Cases of code whose execution data is collected during the run phase but for which no associated source code files can be found at the reporting phase include tests with egg files and Python module files created at test execution-time.
-rw-r--r--tests/.coveragerc3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/.coveragerc b/tests/.coveragerc
index 1b4c087f14..f411b8055e 100644
--- a/tests/.coveragerc
+++ b/tests/.coveragerc
@@ -1,5 +1,8 @@
[run]
omit = */django/contrib/*/tests*,*/django/utils/unittest*,*/django/utils/importlib.py,*/django/test/_doctest.py,*/django/core/servers/fastcgi.py,*/django/utils/autoreload.py,*/django/utils/dictconfig.py
+[report]
+ignore_errors = True
+
[html]
directory = coverage_html