Fix coverage section in tox.ini
This commit fixes the coverage section in tox.ini to get coverage and also changes .gitignore to ignore the cover directory and .coverage directories. Change-Id: Ia58b5d109ad045833d6c37e16fd0fe3705212ed0
This commit is contained in:
parent
996fd548ff
commit
2fb3b5ecff
4
.gitignore
vendored
4
.gitignore
vendored
@ -21,7 +21,9 @@ lib64
|
||||
pip-log.txt
|
||||
|
||||
# Unit test / coverage reports
|
||||
.coverage
|
||||
cover/
|
||||
.coverage*
|
||||
!.coveragerc
|
||||
.tox
|
||||
nosetests.xml
|
||||
.testrepository
|
||||
|
2
tox.ini
2
tox.ini
@ -22,7 +22,7 @@ commands = flake8
|
||||
commands = {posargs}
|
||||
|
||||
[testenv:cover]
|
||||
commands = python setup.py testr --coverage --testr-args='{posargs}'
|
||||
commands = python setup.py testr --coverage --coverage-package-name='os_testr' --testr-args='{posargs}'
|
||||
|
||||
[testenv:docs]
|
||||
commands = python setup.py build_sphinx
|
||||
|
Loading…
Reference in New Issue
Block a user