Replace nose with testr
- add .testr.conf (in base dir and nova_tests) - remove all references to nose - adjust paths: A couple of tests would assume the current directory was ./tests/ but it is now ./ - don't run the tests in parallel as the db tests have one connection per test class. nova_tests hackery: It seems testtools/testr imports everything and I just don't see a way of running things in tests/ and nova_tests/ seperately but in one .test.conf. So if you want to use testr directly you will need to: testr run cd nova_tests testr run part of bug 1177924 Change-Id: I41875dcf94463fa5f9c07a7840c37089226c59ad
This commit is contained in:
4
nova_tests/.testr.conf
Normal file
4
nova_tests/.testr.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
[DEFAULT]
|
||||
test_command=${PYTHON:-python} -m subunit.run discover -t ./nova_tests ./nova_tests $LISTOPT $IDOPTION
|
||||
test_id_option=--load-list $IDFILE
|
||||
test_list_option=--list
|
||||
Reference in New Issue
Block a user