diff --git a/test-requirements.txt b/test-requirements.txt index 6b6c1a9a..4844ad12 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -11,3 +11,4 @@ discover fixtures>=0.3.14 testrepository>=0.0.17 testtools>=0.9.32 +coverage>=3.6 diff --git a/tox.ini b/tox.ini index ea094a23..50ed3957 100644 --- a/tox.ini +++ b/tox.ini @@ -19,7 +19,10 @@ commands = sitepackages = False [testenv:cover] -commands = nosetests --no-path-adjustment --with-coverage --cover-erase --cover-package=climate --cover-inclusive [] +setenv = VIRTUAL_ENV={envdir} +commands = + python setup.py testr --coverage \ + --testr-args='^(?!.*test.*coverage).*$' [testenv:pep8] commands = flake8 {posargs}