summaryrefslogtreecommitdiffstats
path: root/python-discovery-client/.coveragerc
diff options
context:
space:
mode:
authorMichael Hwang <mhwang@research.att.com>2017-09-21 12:19:32 -0400
committerMichael Hwang <mhwang@research.att.com>2017-09-21 17:04:39 -0400
commite11be5dc15e6800ed6111b7773b9e44571343207 (patch)
treeab5b973d7239b8942ab27c3ee04455533d6a4f23 /python-discovery-client/.coveragerc
parent2200894f54019231bfe1a62845dda03e9bb87bd1 (diff)
Fix tox to give more accurate coverage reports
* Also attempted to get sonar working * Fixed minor things along the way Change-Id: I434c0d791140e75cd5997be0cc3fefce7ccc292f Issue-Id: DCAEGEN2-60 Signed-off-by: Michael Hwang <mhwang@research.att.com>
Diffstat (limited to 'python-discovery-client/.coveragerc')
-rw-r--r--python-discovery-client/.coveragerc21
1 files changed, 21 insertions, 0 deletions
diff --git a/python-discovery-client/.coveragerc b/python-discovery-client/.coveragerc
new file mode 100644
index 0000000..088c2da
--- /dev/null
+++ b/python-discovery-client/.coveragerc
@@ -0,0 +1,21 @@
+# .coveragerc to control coverage.py
+[run]
+branch = True
+
+[report]
+# Regexes for lines to exclude from consideration
+exclude_lines =
+ # Have to re-enable the standard pragma
+ pragma: no cover
+
+ # Don't complain about missing debug-only code:
+ def __repr__
+ if self\.debug
+
+ # Don't complain if tests don't hit defensive assertion code:
+ raise AssertionError
+ raise NotImplementedError
+
+ # Don't complain if non-runnable code isn't run:
+ if 0:
+ if __name__ == .__main__.: