summaryrefslogtreecommitdiffstats
path: root/.coveragerc
diff options
context:
space:
mode:
authorChris Church <chris@ninemoreminutes.com>2013-05-22 01:08:46 +0200
committerChris Church <chris@ninemoreminutes.com>2013-05-22 01:08:46 +0200
commit9478d8d532460e77576fcada7e572477981b6413 (patch)
tree57460994e564f68fd6b9ca0d64fa5d238e261608 /.coveragerc
parentMajor rename of package from lib to ansibleworks. (diff)
downloadawx-9478d8d532460e77576fcada7e572477981b6413.tar.xz
awx-9478d8d532460e77576fcada7e572477981b6413.zip
Updates to setup/requirements, add Makefile target for running tests with coverage.
Diffstat (limited to '.coveragerc')
-rw-r--r--.coveragerc25
1 files changed, 25 insertions, 0 deletions
diff --git a/.coveragerc b/.coveragerc
new file mode 100644
index 0000000000..c58219e418
--- /dev/null
+++ b/.coveragerc
@@ -0,0 +1,25 @@
+[run]
+source = ansibleworks
+branch = True
+omit = ansibleworks/main/migrations/*
+
+[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
+