Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cb55df8

Browse files
committed
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
1 parent 12277c7 commit cb55df8

2 files changed

Lines changed: 14 additions & 8 deletions

File tree

.travis.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ python:
55
- 2.7
66
- 3.3
77
env:
8-
- GROUP=js
8+
- GROUP=js/base
9+
- GROUP=js/notebook
10+
- GROUP=js/tree
11+
- GROUP=js/widgets
912
- GROUP=
1013
before_install:
1114
# workaround for https://github.com/travis-ci/travis-cookbooks/issues/155
@@ -27,7 +30,13 @@ script:
2730
matrix:
2831
exclude:
2932
- python: 3.3
30-
env: GROUP=js
33+
env: GROUP=js/base
34+
- python: 3.3
35+
env: GROUP=js/notebook
36+
- python: 3.3
37+
env: GROUP=js/tree
38+
- python: 3.3
39+
env: GROUP=js/widgets
3140

3241
after_success:
3342
- cp /tmp/ipy_coverage.xml ./

IPython/testing/iptestcontroller.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -431,12 +431,9 @@ def prepare_controllers(options):
431431
not to run."""
432432
testgroups = options.testgroups
433433
if testgroups:
434-
if 'js' in testgroups:
435-
js_testgroups = all_js_groups()
436-
else:
437-
js_testgroups = [g for g in testgroups if g.startswith(js_prefix)]
438-
439-
py_testgroups = [g for g in testgroups if g not in ['js'] + js_testgroups]
434+
alljs = all_js_groups()
435+
js_testgroups = [g for g in testgroups if g.startswith(js_prefix)]
436+
py_testgroups = [g for g in testgroups if g not in alljs]
440437
else:
441438
py_testgroups = py_test_group_names
442439
if not options.all:

0 commit comments

Comments
 (0)