From d187a7ea441d0dd61f2474b36c1e09a5fa77dc32 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Mon, 11 Apr 2016 00:15:07 +0100 Subject: [PATCH] .coveragerc: add configuration file for coverage.py --- .coveragerc | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 000000000..4457d6ecb --- /dev/null +++ b/.coveragerc @@ -0,0 +1,28 @@ +[run] +# measure 'branch' coverage in addition to 'statement' coverage +# See: http://coverage.readthedocs.org/en/coverage-4.0.3/branch.html#branch +branch = True + +# list of directories to measure +source = + Lib/fontTools + +[report] +# Regexes for lines to exclude from consideration +exclude_lines = + # keywords to use in inline comments to skip coverage + pragma: no cover + + # 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 source code that can’t be found +ignore_errors = True + +# when running a summary report, show missing lines +show_missing = True