Browse Source

Fix coverage command for tox

This patch fixes to specify project name directly and ignores cover/
directory in running 'tox -e cover'.

Change-Id: I76ed822a6143269ea1bc75c04164262360cde30a
changes/25/592325/2
Yushiro FURUKAWA 4 years ago
parent
commit
2ba631074d
  1. 1
      .gitignore
  2. 2
      tox.ini

1
.gitignore vendored

@ -22,6 +22,7 @@ lib64
pip-log.txt
# Unit test / coverage reports
cover/*
.coverage
.tox
.stestr/

2
tox.ini

@ -20,7 +20,7 @@ commands = {posargs}
[testenv:cover]
setenv =
PYTHON=coverage run --source $project --parallel-mode
PYTHON=coverage run --source scciclient --parallel-mode
commands =
stestr run '{posargs}'
coverage combine

Loading…
Cancel
Save