Browse Source

Use standard cover setup

Replace coverage testing with the normal way coverage is tested in
OpenStack.

Change-Id: Ic171e33a876029727b473481e56fdd94fce5ec6e
changes/35/413235/2
Andreas Jaeger 6 years ago
parent
commit
1b08573a94
  1. 2
      .coveragerc
  2. 4
      .gitignore
  3. 5
      tox.ini

2
.coveragerc

@ -1,9 +1,11 @@
[run]
branch = True
source = jenkins
omit =
.tox*
[report]
ignore_errors = True
exclude_lines =
pragma: no cover
raise NotImplementedError

4
.gitignore vendored

@ -13,3 +13,7 @@
/.coverage
/coverage*.xml
/junit*.xml
# Unit test / coverage reports
cover/

5
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

Loading…
Cancel
Save