diff options
author | Michael Hwang <mhwang@research.att.com> | 2017-09-21 12:19:32 -0400 |
---|---|---|
committer | Michael Hwang <mhwang@research.att.com> | 2017-09-21 17:04:39 -0400 |
commit | e11be5dc15e6800ed6111b7773b9e44571343207 (patch) | |
tree | ab5b973d7239b8942ab27c3ee04455533d6a4f23 /python-dockering/.coveragerc | |
parent | 2200894f54019231bfe1a62845dda03e9bb87bd1 (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-dockering/.coveragerc')
-rw-r--r-- | python-dockering/.coveragerc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/python-dockering/.coveragerc b/python-dockering/.coveragerc new file mode 100644 index 0000000..088c2da --- /dev/null +++ b/python-dockering/.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__.: |