Add back .coveragerc, removed by mistake 21/14321/1
authorTommy Carpenter <tommy@research.att.com>
Thu, 21 Sep 2017 16:58:35 +0000 (12:58 -0400)
committerTommy Carpenter <tommy@research.att.com>
Thu, 21 Sep 2017 16:59:00 +0000 (12:59 -0400)
Issue-ID: DCAEGEN2-74
Change-Id: I18a2c7e54550f10f87bbb97cd150965acd95bb96
Signed-off-by: Tommy Carpenter <tommy@research.att.com>
cdap/.gitignore
cdap/cdapplugin/.coveragerc [new file with mode: 0644]

index 15622ff..f5e9b16 100644 (file)
@@ -1,4 +1,3 @@
 cfyhelper.sh
-cdapplugin/.coveragerc
 cdapplugin/coverage-reports/
 cdapplugin/xunit-reports/*
diff --git a/cdap/cdapplugin/.coveragerc b/cdap/cdapplugin/.coveragerc
new file mode 100644 (file)
index 0000000..9d9d9a2
--- /dev/null
@@ -0,0 +1,29 @@
+# .coveragerc to control coverage.py
+[run]
+branch = True
+cover_pylib = False
+include = */cdapcloudify/*.py
+
+[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__.:
+
+ignore_errors = True
+
+[xml]
+output = coverage-reports/coverage-cdapcloudify.xml
+