summaryrefslogtreecommitdiff
path: root/.testr.conf
diff options
context:
space:
mode:
authorClark Boylan <clark.boylan@gmail.com>2012-10-30 16:30:02 -0700
committerClark Boylan <clark.boylan@gmail.com>2012-12-14 14:22:20 -0800
commit4abc8cc64fe9ec2467b8bce56a846aae6fd18ed4 (patch)
tree4f8a491b3289ca54406fce0bc501338dc745cb8c /.testr.conf
parent8652d71ade5e778da7c5934cc313f9c85443a0ce (diff)
downloadnova-4abc8cc64fe9ec2467b8bce56a846aae6fd18ed4.tar.gz
Use testr to run nova unittests.
Convert nova from using nosetests to testr for its test runner. Some tests had to be modified to get them to run properly under testr. run_tests.sh has been updated to run testr instead of nosetests. Coverage is collected by running subunit.run under coverage.py when the coverage environment is selected. Note that you will need to rebuild your virtualenvs as nose is being removed from the dependency lists and is being replaced by testr. Tests will run in different processes once this test is merged so you cannot use test classes to pass information between tests. Each test should be a proper independent unit. Additionally the -x and -d flags to run_tests.sh have been removed as there are currently no decent approximations for those functions. Change-Id: I019ca098972ca749b195f59968cf21edd5ba9109
Diffstat (limited to '.testr.conf')
-rw-r--r--.testr.conf4
1 files changed, 4 insertions, 0 deletions
diff --git a/.testr.conf b/.testr.conf
new file mode 100644
index 0000000000..fd9442349b
--- /dev/null
+++ b/.testr.conf
@@ -0,0 +1,4 @@
+[DEFAULT]
+test_command=${PYTHON:-python} -m subunit.run discover -t ./ ./nova/tests $LISTOPT $IDOPTION
+test_id_option=--load-list $IDFILE
+test_list_option=--list