From b8766b336c306dbce8b4efc857ca7a8965d75db1 Mon Sep 17 00:00:00 2001 From: Dror Kagan Date: Wed, 23 Jan 2013 11:46:29 -0800 Subject: Fixing the coverage reports for the unittests and adding support for TestR. Now they work better and also include coverage for the tests invoked by testr. Change-Id: Ia48cf4664ce9ec46f7ef21929b0d87cad4149580 Fixes: bug #1103637 --- .coveragerc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to '.coveragerc') diff --git a/.coveragerc b/.coveragerc index 6f625763..45e8572b 100644 --- a/.coveragerc +++ b/.coveragerc @@ -2,8 +2,10 @@ [run] branch = True -timid=True -include=*reddwarf* +source=.tox/cover/lib/python2.7/site-packages/reddwarf +# replace with previous line once the python path issue is resolved and the tox.ini is fixed accordingly +# source=reddwarf +omit=*reddwarf/tests*,*reddwarf/openstack/common* [report] # Regexes for lines to exclude from consideration @@ -24,3 +26,6 @@ exclude_lines = if __name__ == .__main__.: ignore_errors = False + +[html] +directory=cover -- cgit v1.2.1