diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 000000000..a733a2887 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,8 @@ +[run] +branch = True +source = taskflow +omit = taskflow/tests/*,taskflow/openstack/*,taskflow/test.py + +[report] +ignore-errors = True + diff --git a/.gitignore b/.gitignore index 52bed0ef3..9b3b0d9c1 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,8 @@ pip-log.txt .tox nosetests.xml .venv +cover +.testrepository # Translations *.mo diff --git a/tox.ini b/tox.ini index 52a7191d3..b0de39989 100644 --- a/tox.ini +++ b/tox.ini @@ -38,6 +38,9 @@ deps = -r{toxinidir}/requirements.txt commands = pylint [testenv:cover] +deps = -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt + -r{toxinidir}/test-2.x-requirements.txt commands = python setup.py testr --coverage --testr-args='{posargs}' [testenv:venv]