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:
parent
fa006eb35d
commit
6df4f30e33
7
.coveragerc
Normal file
7
.coveragerc
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
[run]
|
||||||
|
branch = True
|
||||||
|
source = os_refresh_config
|
||||||
|
omit = os_refresh_config/tests/*
|
||||||
|
|
||||||
|
[report]
|
||||||
|
ignore-errors = True
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -23,6 +23,7 @@ pip-log.txt
|
|||||||
|
|
||||||
# Unit test / coverage reports
|
# Unit test / coverage reports
|
||||||
.coverage
|
.coverage
|
||||||
|
cover
|
||||||
.testrepository
|
.testrepository
|
||||||
.tox
|
.tox
|
||||||
nosetests.xml
|
nosetests.xml
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
[DEFAULT]
|
[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_id_option=--load-list $IDFILE
|
||||||
test_list_option=--list
|
test_list_option=--list
|
||||||
|
|
||||||
|
2
tox.ini
2
tox.ini
@ -22,7 +22,7 @@ commands = flake8
|
|||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
commands =
|
commands =
|
||||||
python setup.py testr --coverage
|
python setup.py testr --coverage --coverage-package-name=os_refresh_config
|
||||||
|
|
||||||
[testenv:venv]
|
[testenv:venv]
|
||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user