Continuous integration 在travis上的create react应用程序上运行夜视测试

Continuous integration 在travis上的create react应用程序上运行夜视测试,continuous-integration,travis-ci,nightwatch.js,create-react-app,npm-scripts,Continuous Integration,Travis Ci,Nightwatch.js,Create React App,Npm Scripts,我在travis上的create react应用程序服务器(npm start)上运行夜视测试时遇到问题。我正在用启动creat react应用程序 .travis.yml: before_script: - npm --prefix ./client start ./client & script: npm run test-ci 然而,当夜表运行时,我总是感到 Starting the development server... Starting selenium server

我在travis上的create react应用程序服务器(
npm start
)上运行夜视测试时遇到问题。我正在用启动creat react应用程序

.travis.yml:

before_script:
  - npm --prefix ./client start ./client &
script: npm run test-ci
然而,当夜表运行时,我总是感到

Starting the development server...
Starting selenium server... Warning: The 'no-use-before-declare' rule requires type information.
ts-loader: Using typescript@2.5.3 and /home/travis/build/client/tsconfig.json
started - PID:  4017

You can now view app in the browser.
  Local:            http://localhost:3000/
  On Your Network:  http://172.17.0.3:3000/
Note that the development build is not optimized.
To create a production build, use npm run build.
Error retrieving a new session from the selenium server
Connection refused! Is selenium server started?
{ Error: socket hang up

但是,在本地启动和运行nightwatch测试非常完美。

问题在于Chrome,而不是react或nightwatch的问题


问题在于Chrome,而不是react或Nightwatch的问题