diff --git a/.gitignore b/.gitignore index 617f64e..6485d46 100644 --- a/.gitignore +++ b/.gitignore @@ -24,6 +24,7 @@ pip-log.txt # Unit test / coverage reports .coverage +cover/ .tox nosetests.xml .testrepository diff --git a/tox.ini b/tox.ini index edfcf61..ab3e002 100644 --- a/tox.ini +++ b/tox.ini @@ -36,7 +36,14 @@ commands = {posargs} commands = sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html [testenv:cover] -commands = python setup.py testr --coverage --testr-args='{posargs}' +commands = + coverage erase + coverage run --source watcher_dashboard {toxinidir}/manage.py test \ + --settings=watcher_dashboard.test.settings \ + --exclude-tag integration watcher_dashboard {posargs} + coverage xml + coverage html -d ./cover --omit='*tests*' + coverage report [testenv:docs] deps =