From 278a39ecf7db1a9cd9905fdea68fa4c165a84a56 Mon Sep 17 00:00:00 2001 From: Kiall Mac Innes Date: Fri, 27 Mar 2015 16:10:59 +0000 Subject: [PATCH] Add tox -ecover environment Change-Id: Ifb07bb6e7240d8d8a116baa17cb89ced647c128b --- .coveragerc | 7 +++++++ tox.ini | 3 +++ 2 files changed, 10 insertions(+) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000000..e5382654ca --- /dev/null +++ b/.coveragerc @@ -0,0 +1,7 @@ +[run] +branch = True +source = octavia +omit = octavia/tests/*,octavia/openstack/* + +[report] +ignore-errors = True diff --git a/tox.ini b/tox.ini index df4921c50f..acd7dd33b4 100644 --- a/tox.ini +++ b/tox.ini @@ -12,6 +12,9 @@ deps = -r{toxinidir}/requirements.txt -r{toxinidir}/doc-requirements.txt commands = python setup.py testr --slowest --testr-args='{posargs}' +[testenv:cover] +commands = python setup.py testr --coverage --testr-args='{posargs}' + [testenv:pep8] commands = flake8 doc8 specs doc/source octavia \