summaryrefslogtreecommitdiffstats
path: root/.testr.conf
diff options
context:
space:
mode:
authorVictor Sergeyev <vsergeyev@mirantis.com>2013-06-18 12:29:58 +0300
committerVictor Sergeyev <vsergeyev@mirantis.com>2013-06-18 18:24:39 +0300
commit7f99dd9c5b33999bfbd0bacb7438193816aec5b5 (patch)
tree1b865286eecda6f7ed42660680a5c8f86b29f84f /.testr.conf
parent688832fd379776bf12f21f76c884caa42a48d2c5 (diff)
downloadoslo-7f99dd9c5b33999bfbd0bacb7438193816aec5b5.zip
oslo-7f99dd9c5b33999bfbd0bacb7438193816aec5b5.tar.gz
oslo-7f99dd9c5b33999bfbd0bacb7438193816aec5b5.tar.xz
Replace nosetests with testr in tox.ini.
Config tox.ini updated to run testr instead of nosetests. File test-requirements.txt modified respectively. Config .testr.conf added. Testr allows for more flexible testing, more consistent use of the unittest protocol and, most importantly, faster testing via parallelism. Part of blueprint run-tests-script. Change-Id: Iba847d430a18458a1a68e6ef07541d29c0c01c64
Diffstat (limited to '.testr.conf')
-rw-r--r--.testr.conf9
1 files changed, 9 insertions, 0 deletions
diff --git a/.testr.conf b/.testr.conf
new file mode 100644
index 0000000..d54ffb8
--- /dev/null
+++ b/.testr.conf
@@ -0,0 +1,9 @@
+[DEFAULT]
+TESTS_PATH=./test
+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 -t ./ $TESTS_PATH $LISTOPT $IDOPTION
+
+test_id_option=--load-list $IDFILE
+test_list_option=--list