From e11be5dc15e6800ed6111b7773b9e44571343207 Mon Sep 17 00:00:00 2001 From: Michael Hwang Date: Thu, 21 Sep 2017 12:19:32 -0400 Subject: 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 --- python-dockering/.coveragerc | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 python-dockering/.coveragerc (limited to 'python-dockering/.coveragerc') 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__.: -- cgit 1.2.3-korg