์๋ ํ์ธ์ ์น๊ตฌ!
WebdriverIO์ ๊ฐ์ฌ๋๋ฆฝ๋๋ค!
๋ค์๊ณผ ๊ฐ์ ๋ฌธ์ ๊ฐ ์์ต๋๋ค. ์ ๊ฐ ๋ญ ์๋ชปํ๊ณ ์๋์ง ์๋ ค์ฃผ์ธ์ ๐
ํ๊ฒฝ
Node LTS๋ฅผ ์ฌ์ฉํ์ฌ Travis CI ๋ด์์ ์คํ
_travis.yml_
language: node_js
node_js:
- '10.15'
_ํจํค์ง.json_
{
"name": "wdio-starter",
"private": true,
"scripts": {
"postinstall": "selenium-standalone install",
"test": "wdio wdio.conf.js"
},
"dependencies": {
"@wdio/cli": "^5.2.8",
"@wdio/local-runner": "^5.2.8",
"@wdio/mocha-framework": "^5.2.8",
"@wdio/selenium-standalone-service": "^5.2.2",
"@wdio/spec-reporter": "^5.2.3",
"@wdio/sync": "^5.2.8"
}
}
WebdriverIO ๊ตฌ์ฑ
wdio config
์์ ๊ฑฐ์ ๊ธฐ๋ณธ ์ค์ ์ด ์์ต๋๋ค.
https://github.com/halfzebra/wdio-starter/blob/master/wdio.conf.js
๋ฒ๊ทธ ์ค๋ช
Travis CI https://travis-ci.org/halfzebra/wdio-starter/builds/480278039 ์์ ๋ก๊ทธ๋ฅผ ํ์ธ
ERROR webdriver: Request failed due to Error: unknown error: Chrome failed to start: exited abnormally
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
https://travis-ci.org/halfzebra/wdio-starter
์ฌํํ๊ธฐ ์ํด
https://github.com/halfzebra/wdio-starter๋ฅผ ํฌํฌํ๊ณ Travis CI์์ ์คํํฉ๋๋ค.
์์๋๋ ํ๋
Travis CI์์ ์๋ํด์ผ ํฉ๋๋ค.
ํค๋๋ฆฌ์ค ๋ชจ๋์์ ํฌ๋กฌ์ ์คํํ๋ ๋ฐฉ๋ฒ์ https://github.com/webdriverio/webdriverio/issues/3130#issuecomment -447405876์ ์ฐธ์กฐ
์กฐ์ธ ๊ฐ์ฌํฉ๋๋ค, ๊ทธ๊ฒ์ ์ ์๊ฒ ์ ๋ง์์ต๋๋ค!
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
์กฐ์ธ ๊ฐ์ฌํฉ๋๋ค, ๊ทธ๊ฒ์ ์ ์๊ฒ ์ ๋ง์์ต๋๋ค!