From 1b08573a9477b2cf4b1077bfff6e710161d8aa93 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Tue, 20 Dec 2016 22:12:47 +0100 Subject: [PATCH] Use standard cover setup Replace coverage testing with the normal way coverage is tested in OpenStack. Change-Id: Ic171e33a876029727b473481e56fdd94fce5ec6e --- .coveragerc | 2 ++ .gitignore | 4 ++++ tox.ini | 5 +---- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.coveragerc b/.coveragerc index 856af20..d31613c 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,9 +1,11 @@ [run] branch = True +source = jenkins omit = .tox* [report] +ignore_errors = True exclude_lines = pragma: no cover raise NotImplementedError diff --git a/.gitignore b/.gitignore index d407c38..1322083 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,7 @@ /.coverage /coverage*.xml /junit*.xml + +# Unit test / coverage reports +cover/ + diff --git a/tox.ini b/tox.ini index 6153060..6a05eb8 100644 --- a/tox.ini +++ b/tox.ini @@ -11,10 +11,7 @@ deps = -r{toxinidir}/test-requirements.txt commands = python setup.py testr --slowest --testr-args='{posargs}' [testenv:cover] -commands = - coverage run -m discover - coverage report --omit="tests/*" --show-missing - coverage html --omit="tests/*" -d cover +commands = python setup.py test --coverage --testr-args='{posargs}' [testenv:pep8] commands = flake8