From 5746d52ea85cc34d447f300a2b748d79886dd213 Mon Sep 17 00:00:00 2001 From: Tong Li Date: Wed, 11 Dec 2013 11:40:32 -0500 Subject: test code should be excluded from test coverage summary Since the recent movement of the test code directory, now entire test code is included in the test coverage summary, it makes a rather strange loop, test code in the summary also shows being tested or not tested. This patch will fix the problem so that the test coverage summary will not show the coverage percentage for test code. Change-Id: Ibbb4a009f01515befdd7045d6eec1afaf24ca99f --- .coveragerc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to '.coveragerc') diff --git a/.coveragerc b/.coveragerc index 6f415c5c..964f6679 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,5 +1,8 @@ +[run] +branch = True +source = ceilometer +omit = ceilometer/tests/*, ceilometer/openstack/common/* + [report] -# code copied from oslo openstack common code, we do not have -# test cases particularly for these modules, excluding them -# from coverage report -omit = ceilometer/openstack/common/*.py +ignore-errors = True + -- cgit v1.2.1