Coverage report was't created

Usually, coverage report is created by "tox -ecover" command.
But it wasn't created. This fixes it.

Change-Id: If1096d70831e055d9d1f77a2fd08d28025c18597
Closes-Bug: #1374259
This commit is contained in:
Motohiro OTSUKA 2014-09-26 13:30:20 +09:00
parent fa006eb35d
commit 6df4f30e33
4 changed files with 10 additions and 3 deletions

7
.coveragerc Normal file
View File

@ -0,0 +1,7 @@
[run]
branch = True
source = os_refresh_config
omit = os_refresh_config/tests/*
[report]
ignore-errors = True

1
.gitignore vendored
View File

@ -23,6 +23,7 @@ pip-log.txt
# Unit test / coverage reports
.coverage
cover
.testrepository
.tox
nosetests.xml

View File

@ -1,5 +1,4 @@
[DEFAULT]
test_command=python -m subunit.run discover . $LISTOPT $IDOPTION
test_command=${PYTHON:-python} -m subunit.run discover -t ./ . $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list

View File

@ -22,7 +22,7 @@ commands = flake8
[testenv:cover]
setenv = VIRTUAL_ENV={envdir}
commands =
python setup.py testr --coverage
python setup.py testr --coverage --coverage-package-name=os_refresh_config
[testenv:venv]
commands = {posargs}