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:
Masayuki Igawa 2015-12-04 18:26:12 +09:00
parent 996fd548ff
commit 2fb3b5ecff
2 changed files with 4 additions and 2 deletions

4
.gitignore vendored
View File

@ -21,7 +21,9 @@ lib64
pip-log.txt
# Unit test / coverage reports
.coverage
cover/
.coverage*
!.coveragerc
.tox
nosetests.xml
.testrepository

View File

@ -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