diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..bbbf748 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,8 @@ +[run] +branch = True +source = automaton +omit = automaton/tests/* + +[report] +ignore_errors = True +precision = 2 diff --git a/.gitignore b/.gitignore index a9a998b..f678959 100644 --- a/.gitignore +++ b/.gitignore @@ -37,6 +37,7 @@ htmlcov/ .testrepository/ .tox/ .coverage +cover .cache nosetests.xml coverage.xml diff --git a/tox.ini b/tox.ini index 373b2e8..17323b6 100644 --- a/tox.ini +++ b/tox.ini @@ -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}"