Skip to content

Commit 70cf94a

Browse files
committed
Use headless Chrome for CI testing
1 parent c2ae9eb commit 70cf94a

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ cache:
77
directories:
88
- $HOME/.yarn-cache
99

10+
addons:
11+
chrome: stable
12+
1013
before_install:
1114
- nvm install 6.10.0
12-
- export PATH=/usr/local/phantomjs-2.0.0/bin:$PATH
1315
- npm config set spin false
1416
- npm install -g yarn
1517

docs/CONTRIBUTING.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -117,19 +117,10 @@ talk to:
117117
118118
#### Running the frontend tests
119119

120-
In order to run the frontend tests, you will need to have installed:
121-
122-
- [phantomjs](http://phantomjs.org/) >= 2.1.1
123-
124-
`npm install phantomjs-prebuilt` is an easy way to install phantomjs; see its
125-
website for other installation methods or use your preferred method of
126-
installing dependencies.
127-
128-
Once phantomjs is installed, run the frontend tests with:
120+
You can run the frontend tests with:
129121

130122
```
131-
yarn run ember test
132-
yarn run ember test --server
123+
yarn test
133124
```
134125

135126
### Working on the Backend

testem.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,17 @@ module.exports = {
66
'test_page': 'tests/index.html?hidepassed',
77
'disable_watching': true,
88
'launch_in_ci': [
9-
'PhantomJS'
9+
'Chrome'
1010
],
1111
'launch_in_dev': [
12-
'PhantomJS',
1312
'Chrome'
14-
]
13+
],
14+
'browser_args': {
15+
'Chrome': [
16+
'--disable-gpu',
17+
'--headless',
18+
'--remote-debugging-port=9222',
19+
'--window-size=1440,900'
20+
],
21+
}
1522
};

0 commit comments

Comments
 (0)