From 6c86efc1a39792cb08e18ff6bd5ca3af0c1739ed Mon Sep 17 00:00:00 2001 From: Ronald Bradford Date: Mon, 5 Oct 2015 13:32:44 -0400 Subject: [PATCH] Add standard code coverage configuration file Add the .coveragerc configuration consistent with other projects, specifically to define including branch = True and omit including tests in the coverage reports Change-Id: Icb1989e4828ac380acc9a395b241fdf592c7d022 --- .coveragerc | 8 ++++++++ .gitignore | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 00000000..4248611c --- /dev/null +++ b/.coveragerc @@ -0,0 +1,8 @@ +[run] +branch = True +source = heatclient +omit = heatclient/tests/*,heatclient/openstack/* + +[report] +ignore_errors = True +precision = 2 diff --git a/.gitignore b/.gitignore index ea9789f3..dee193ab 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -.coverage +.coverage* .venv *,cover cover