diff options
| author | Josh Kearney <josh@jk0.org> | 2013-01-22 11:09:11 -0600 |
|---|---|---|
| committer | Josh Kearney <josh@jk0.org> | 2013-01-22 12:16:09 -0600 |
| commit | 63c8bb5306d15c7679b2cd1d22b6ee556967863d (patch) | |
| tree | 3ffa74771e9c85cd9023ce5294147bb633d3cea2 /tox.ini | |
| parent | c1ea2989049c102fde0ea22ac06d066a34d7b0db (diff) | |
| download | python-openstackclient-63c8bb5306d15c7679b2cd1d22b6ee556967863d.tar.gz | |
Migrate from nose to testr.
Run tests with testr for parallel execution.
Part of blueprint grizzly-testtools.
Change-Id: I560592186f2f440049a451a32e58067262ab62d0
Diffstat (limited to 'tox.ini')
| -rw-r--r-- | tox.ini | 32 |
1 files changed, 5 insertions, 27 deletions
@@ -3,14 +3,12 @@ envlist = py26,py27,pep8 [testenv] setenv = VIRTUAL_ENV={envdir} - NOSE_WITH_OPENSTACK=1 - NOSE_OPENSTACK_COLOR=1 - NOSE_OPENSTACK_RED=0.05 - NOSE_OPENSTACK_YELLOW=0.025 - NOSE_OPENSTACK_SHOW_ELAPSED=1 + LANG=en_US.UTF-8 + LANGUAGE=en_US:en + LC_ALL=C deps = -r{toxinidir}/tools/pip-requires -r{toxinidir}/tools/test-requires -commands = nosetests +commands = python setup.py testr --testr-args='{posargs}' [testenv:pep8] deps = pep8==1.1 @@ -20,27 +18,7 @@ commands = pep8 --repeat --show-source openstackclient setup.py commands = {posargs} [testenv:cover] -commands = nosetests --cover-erase --cover-package=openstackclient --with-xcoverage +commands = python setup.py testr --coverage --testr-args='{posargs}' [tox:jenkins] downloadcache = ~/cache/pip - -[testenv:jenkins26] -basepython = python2.6 -setenv = NOSE_WITH_XUNIT=1 -deps = file://{toxinidir}/.cache.bundle - -[testenv:jenkins27] -basepython = python2.7 -setenv = NOSE_WITH_XUNIT=1 -deps = file://{toxinidir}/.cache.bundle - -[testenv:jenkinscover] -deps = file://{toxinidir}/.cache.bundle -setenv = NOSE_WITH_XUNIT=1 -commands = nosetests --cover-erase --cover-package=openstackclient --with-xcoverage - -[testenv:jenkinsvenv] -deps = file://{toxinidir}/.cache.bundle -setenv = NOSE_WITH_XUNIT=1 -commands = {posargs} |
