Merge "Coverage report was't created"

This commit is contained in:
Jenkins 2014-09-29 10:40:43 +00:00 committed by Gerrit Code Review
commit d14d1591d7
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}