From 63f89bc9160b9cde310094ddb8d4dcce1ad632be Mon Sep 17 00:00:00 2001 From: "Ivan A. Melnikov" Date: Fri, 22 Nov 2013 11:25:03 +0400 Subject: [PATCH] Coverage calculation improvements - add .coveragerc to configure coverage calculations and omissions; - add python 2.x specific test requirements to coverage tox env; - update .gitignore. Change-Id: Idc35e4f18ec297506576f09e468ab34e8704c0b1 --- .coveragerc | 8 ++++++++ .gitignore | 2 ++ tox.ini | 3 +++ 3 files changed, 13 insertions(+) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 000000000..a733a2887 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,8 @@ +[run] +branch = True +source = taskflow +omit = taskflow/tests/*,taskflow/openstack/*,taskflow/test.py + +[report] +ignore-errors = True + diff --git a/.gitignore b/.gitignore index 52bed0ef3..9b3b0d9c1 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,8 @@ pip-log.txt .tox nosetests.xml .venv +cover +.testrepository # Translations *.mo diff --git a/tox.ini b/tox.ini index 52a7191d3..b0de39989 100644 --- a/tox.ini +++ b/tox.ini @@ -38,6 +38,9 @@ deps = -r{toxinidir}/requirements.txt commands = pylint [testenv:cover] +deps = -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt + -r{toxinidir}/test-2.x-requirements.txt commands = python setup.py testr --coverage --testr-args='{posargs}' [testenv:venv]