summaryrefslogtreecommitdiff
path: root/.testr.conf
diff options
context:
space:
mode:
authorMatthew Treinish <treinish@linux.vnet.ibm.com>2013-06-17 15:29:10 -0400
committerMatthew Treinish <treinish@linux.vnet.ibm.com>2013-07-17 13:32:50 -0400
commit87af1bbfb27085d7c9dce3bcf21d0422d7a22bc1 (patch)
tree3d956039f93489ca4707c4fe61cb6dc77530037a /.testr.conf
parentab58604aeac2c8c670a29b476ef56c022ea84a31 (diff)
downloadtempest-87af1bbfb27085d7c9dce3bcf21d0422d7a22bc1.tar.gz
Switch to using testr as the test runner for everything non-gating.
This commit switches the test runner in tempest to testr from nose for all jobs that aren't gating. This will allow the usage of parallel testing with the use of a group_regex in testr. Group_regex will ensure that the classes get scheduled together and the run times are tracked together. Than the tools/run_test_classes.py script will filter the test_ids and pass only the classes to subunit.run to ensure we are only running setupClass once. This commit also adds a new option to run_tests.sh. -t/--with-testr can be used to optionally run tempest in parallel with testr. Once running with testr gets stable enough this will become the default for run_tests. It also adds a testr-full tox job so we can have a tracking non-voting job that runs the same tests as the gate but with testr. Implements: blueprint speed-up-tempest Change-Id: Iedc9bd92b8f8471c60c614c7d7c05046d7b32743
Diffstat (limited to '.testr.conf')
-rw-r--r--.testr.conf7
1 files changed, 4 insertions, 3 deletions
diff --git a/.testr.conf b/.testr.conf
index a0262d822..fbea056e3 100644
--- a/.testr.conf
+++ b/.testr.conf
@@ -1,4 +1,5 @@
[DEFAULT]
-test_command=${PYTHON:-python} -m subunit.run discover -t ./ ./tempest $LISTOPT $IDOPTION
-test_id_option=--load-list $IDFILE
-test_list_option=--list
+test_command=${PYTHON:-python} -m subunit.run $LISTOPT $IDOPTION
+test_id_option=$(${PYTHON:-python} -m tools/run_test_classes $IDFILE)
+test_list_option=discover -t ./ ./tempest --list
+group_regex=([^\.]*\.)*