Skip to content

Commit

Permalink
Merge pull request #7132 from Carreau/split-js-tests
Browse files Browse the repository at this point in the history
Split js tests into subgroups
  • Loading branch information
minrk committed Jan 8, 2015
2 parents 12277c7 + cb55df8 commit 0bb3eac
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
13 changes: 11 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ python:
- 2.7
- 3.3
env:
- GROUP=js
- GROUP=js/base
- GROUP=js/notebook
- GROUP=js/tree
- GROUP=js/widgets
- GROUP=
before_install:
# workaround for https://github.com/travis-ci/travis-cookbooks/issues/155
Expand All @@ -27,7 +30,13 @@ script:
matrix:
exclude:
- python: 3.3
env: GROUP=js
env: GROUP=js/base
- python: 3.3
env: GROUP=js/notebook
- python: 3.3
env: GROUP=js/tree
- python: 3.3
env: GROUP=js/widgets

after_success:
- cp /tmp/ipy_coverage.xml ./
Expand Down
9 changes: 3 additions & 6 deletions IPython/testing/iptestcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0bb3eac

Please sign in to comment.