Enable coverage testing

This is useful to see how we're doing on unit testing.

93%, for the record. :-)

Change-Id: If5301b3205818dbba49c6a82ce6f5135384d0b27
This commit is contained in:
Ben Nemec 2015-11-30 22:53:20 +00:00
parent 1eafb55f4c
commit e163633262
4 changed files with 12 additions and 0 deletions

7
.coveragerc Normal file
View File

@ -0,0 +1,7 @@
[run]
branch = True
source = instack_undercloud
omit = instack_undercloud/tests/*
[report]
ignore_errors = True

1
.gitignore vendored
View File

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

View File

@ -5,6 +5,7 @@ sphinx_rtd_theme==0.1.7
hacking>=0.10.0,<0.11
coverage>=3.6
discover
fixtures>=0.3.14
python-subunit>=0.0.18

View File

@ -25,6 +25,9 @@ commands =
flake8
bash -c "find scripts -type f | xargs bashate -v -iE006"
[testenv:cover]
commands = python setup.py test --coverage --coverage-package-name=instack_undercloud --testr-args='{posargs}'
[flake8]
ignore = H803
show-source = True