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
This commit is contained in:
Tong Li 2013-12-11 11:40:32 -05:00
parent 2dfc578b2d
commit 5746d52ea8
1 changed files with 7 additions and 4 deletions

View File

@ -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