summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorMonty Taylor <mordred@inaugust.com>2013-04-06 12:21:59 -0400
committerMonty Taylor <mordred@inaugust.com>2013-05-03 17:26:07 -0400
commitef46c65837343aa3ef6c89067469ec2ab848d6b5 (patch)
tree046f40b8dc0e9263078578f1c0ca45e1df28d565 /tox.ini
parentffbdc2acb632ab3380389eb3669251a481714614 (diff)
downloadoslo-config-ef46c65837343aa3ef6c89067469ec2ab848d6b5.tar.gz
Upgrade testing to use testr.
Change-Id: Ib0e73c125c908898735e60e5b435468bc2b08316
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini7
1 files changed, 5 insertions, 2 deletions
diff --git a/tox.ini b/tox.ini
index 751bd8f..74c6792 100644
--- a/tox.ini
+++ b/tox.ini
@@ -5,7 +5,7 @@ envlist = py26,py27,pep8,pylint
setenv = VIRTUAL_ENV={envdir}
deps = -r{toxinidir}/tools/pip-requires
-r{toxinidir}/tools/test-requires
-commands = nosetests --with-doctest --exclude-dir=tests/testmods {posargs}
+commands = python setup.py testr --slowest --testr-args='{posargs}'
[testenv:pep8]
deps = pep8==1.3.3
@@ -17,7 +17,10 @@ commands = python ./tools/lint.py ./oslo
python ./tools/lint.py ./tests
[testenv:cover]
-setenv = NOSE_WITH_COVERAGE=1
+setenv = VIRTUAL_ENV={envdir}
+commands =
+ python setup.py testr --coverage
+
[testenv:venv]
commands = {posargs}