Run tests using testrepository

Change-Id: Ic0b4146d18fe7dba6f7c43c48ad6507147ef11eb
This commit is contained in:
Julien Danjou 2013-11-19 11:48:27 +01:00
parent a24fb07d39
commit fe64cb2178
4 changed files with 12 additions and 1 deletions

2
.gitignore vendored
View File

@ -33,3 +33,5 @@ nosetests.xml
AUTHORS
ChangeLog
.testrepository

7
.testr.conf Normal file
View File

@ -0,0 +1,7 @@
[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 climate $LISTOPT $IDOPTION
test_id_option=--load-list $IDFILE
test_list_option=--list

View File

@ -7,7 +7,9 @@ mox>=0.5.3
sphinx>=1.1.2
sphinxcontrib-httpdomain
discover
fixtures>=0.3.14
testrepository>=0.0.17
testtools>=0.9.32
http://tarballs.openstack.org/nova/nova-master.tar.gz#egg=nova

View File

@ -11,7 +11,7 @@ setenv = VIRTUAL_ENV={envdir}
NOSE_OPENSTACK_YELLOW=0.025
NOSE_OPENSTACK_SHOW_ELAPSED=1
commands = nosetests --no-path-adjustment --where=tests_nova_scheduler
nosetests --no-path-adjustment --where=climate/tests {posargs}
python setup.py testr --slowest --testr-args="{posargs}"
sitepackages = False
[testenv:cover]