summaryrefslogtreecommitdiffstats
path: root/.coveragerc
diff options
context:
space:
mode:
Diffstat (limited to '.coveragerc')
-rw-r--r--.coveragerc29
1 files changed, 29 insertions, 0 deletions
diff --git a/.coveragerc b/.coveragerc
new file mode 100644
index 0000000..f995964
--- /dev/null
+++ b/.coveragerc
@@ -0,0 +1,29 @@
+[run]
+branch = True
+source =
+ .
+omit =
+ .tox/*
+ /usr/*
+ setup.py
+
+[report]
+show_missing = True
+
+exclude_lines =
+ # Have to re-enable the standard pragma
+ \#\s*pragma: no cover
+
+ # Don't complain if tests don't hit defensive assertion code:
+ ^\s*raise AssertionError\b
+ ^\s*raise NotImplementedError\b
+ ^\s*return NotImplemented\b
+ ^\s*raise$
+
+ # Don't complain if non-runnable code isn't run:
+ ^if __name__ == ['"]__main__['"]:$
+
+[html]
+directory = coverage-html
+
+# vim:ft=dosini