Migrate to testr.

Change-Id: I497fc21a0795b8921f989d7a00b6a73f7730cd22
This commit is contained in:
Michael Basnight 2013-06-17 23:47:43 -07:00
parent 741d82c0e8
commit bc90b3e088
16 changed files with 14 additions and 7 deletions

1
.gitignore vendored
View File

@ -1,4 +1,5 @@
*.pyc
.testrepository
.tox/*
dist/*
build/*

8
.testr.conf Normal file
View File

@ -0,0 +1,8 @@
[DEFAULT]
test_command=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
OS_TEST_TIMEOUT=${OS_TEST_TIMEOUT:-60} \
${PYTHON:-python} -m subunit.run discover . $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list

View File

@ -4,12 +4,10 @@ pyflakes==0.7.2
flake8==2.0
hacking>=0.5.3,<0.6
nose>=1.2.1
nosexcover>=1.0.7
openstack.nose_plugin>=0.11
discover
sphinx>=1.1.2
unittest2>=0.5.1
testtools
testrepository>=0.0.13
testtools>=0.9.29
# This used to be but openstack/requirements is set to [below].
# If this breaks we 1) fix tests to use [below] or
# 2) petition to use mock>=1.0.1

View File

@ -12,7 +12,7 @@ setenv = VIRTUAL_ENV={envdir}
NOSE_OPENSTACK_SHOW_ELAPSED=1
deps = -r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = nosetests
commands = python setup.py testr --testr-args='{posargs}'
[testenv:pep8]
commands = flake8
@ -21,7 +21,7 @@ commands = flake8
commands = {posargs}
[testenv:cover]
commands = nosetests --cover-erase --cover-package=reddwarfclient --with-xcoverage
commands = python setup.py testr --coverage --testr-args='{posargs}'
[testenv:docs]
-deps =