Split js tests in N subgroups.

js test are the longer ~8 minutes vs ~3 for Python, and fails the more often.
Hopefully this will speedup the build and have less test relaunched when we
have a random faillure.  Splitting should make the js test a bit faster
This commit is contained in:
Matthias Bussonnier 2014-12-08 09:41:35 +01:00
parent 38d0463557
commit dc9efdfc98

View File

@ -431,12 +431,9 @@ def prepare_controllers(options):
not to run."""
testgroups = options.testgroups
if testgroups:
if 'js' in testgroups:
js_testgroups = all_js_groups()
else:
js_testgroups = [g for g in testgroups if g.startswith(js_prefix)]
py_testgroups = [g for g in testgroups if g not in ['js'] + js_testgroups]
alljs = all_js_groups()
js_testgroups = [g for g in testgroups if g.startswith(js_prefix)]
py_testgroups = [g for g in testgroups if g not in alljs]
else:
py_testgroups = py_test_group_names
if not options.all: