Skip to content

Commit

Permalink
Merge pull request #57 from Turbo87/chomre
Browse files Browse the repository at this point in the history
Use Chrome instead of PhantomJS for testing
  • Loading branch information
Turbo87 authored Mar 17, 2019
2 parents a35c6de + 62aeace commit 4144c12
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ node_js:

sudo: false

addons:
chrome: stable

cache:
yarn: true

Expand Down
31 changes: 22 additions & 9 deletions testem.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,25 @@
/* eslint-env node */
module.exports = {
"test_page": "tests/index.html?hidepassed",
"disable_watching": true,
"launch_in_ci": [
"PhantomJS"
test_page: 'tests/index.html?hidepassed',
disable_watching: true,
launch_in_ci: [
'Chrome'
],
"launch_in_dev": [
"PhantomJS",
"Chrome"
]
launch_in_dev: [
'Chrome'
],
browser_args: {
Chrome: {
ci: [
// --no-sandbox is needed when running Chrome inside a container
process.env.CI ? '--no-sandbox' : null,
'--headless',
'--disable-gpu',
'--disable-dev-shm-usage',
'--disable-software-rasterizer',
'--mute-audio',
'--remote-debugging-port=0',
'--window-size=1440,900'
].filter(Boolean)
}
}
};

0 comments on commit 4144c12

Please sign in to comment.