Added code coverage section to tox

Defined cover in tox.ini and added .coveragerc configuration
consistent with other projects

http://lists.openstack.org/pipermail/openstack-dev/2015-October/076193.html

Change-Id: I426f1081425ca9f8ea4297c665632954cc74bb8d
This commit is contained in:
Ronald Bradford
2015-10-05 17:10:31 -04:00
parent 94630d8720
commit c3b7251de4
3 changed files with 12 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
[run]
branch = True
source = automaton
omit = automaton/tests/*
[report]
ignore_errors = True
precision = 2
+1
View File
@@ -37,6 +37,7 @@ htmlcov/
.testrepository/
.tox/
.coverage
cover
.cache
nosetests.xml
coverage.xml
+3
View File
@@ -34,3 +34,6 @@ commands = {posargs}
[flake8]
show-source = True
exclude=.venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build
[testenv:cover]
commands = python setup.py test --coverage --testr-args="{posargs}"