Skip to content

Commit

Permalink
test with headless chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoow committed Jan 5, 2018
1 parent 3986175 commit 1f5b0f8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ node_js:
- "4"

sudo: false
dist: trusty

addons:
chrome: stable

cache:
yarn: true
Expand All @@ -15,9 +19,7 @@ cache:
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH
- yarn global add bower phantomjs-prebuilt
- bower --version
- phantomjs --version

install:
- yarn install --no-lockfile
Expand Down
25 changes: 18 additions & 7 deletions testem.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
/* eslint-env node */
module.exports = {
'test_page': 'tests/index.html?hidepassed',
'disable_watching': true,
'launch_in_ci': [
'PhantomJS'
framework: 'mocha',
test_page: 'tests/index.html?hidepassed',
disable_watching: true,
launch_in_ci: [
'Chrome'
],
'launch_in_dev': [
'PhantomJS',
launch_in_dev: [
'Chrome'
]
],
browser_args: {
Chrome: {
mode: 'ci',
args: [
'--disable-gpu',
'--headless',
'--remote-debugging-port=9222',
'--window-size=1440,900'
]
},
}
};

0 comments on commit 1f5b0f8

Please sign in to comment.