-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SPIKE Can we run the e2e tests on TravisCI (or other CI)? #8
Comments
Sadly this did not work looks like the Selenium server did not start: https://travis-ci.org/nelsonic/learn-nightwatch/builds/137542228#L185 |
Looks like Travis-CI is not going to be an option... see: travis-ci/travis-ci#4090 (for now...) |
Hold on, found this: http://stackoverflow.com/questions/18456611/is-it-possible-to-set-up-travis-to-run-tests-for-several-languages which leads to http://entulho.fiatjaf.alhur.es/guias/how-to-use-node-along-with-other-language-on-travis-ci/ which suggests that we set the language in language: java
install:
- . $HOME/.nvm/nvm.sh
- nvm install stable
- nvm use stable
- npm install
script:
- npm test This example is for |
Setting the language to Java did not work ... https://travis-ci.org/nelsonic/learn-nightwatch#L417 attempting: https://docs.travis-ci.com/user/customizing-the-build/#Installing-a-Second-Programming-language linked to by: http://superuser.com/questions/993718/can-i-install-java-8-on-travis-ci-for-a-python-project#comment1405598_993718 |
Note: This works on CodeShip without any issues: |
Travis is pure frustration ... 😞 |
Attempt to run the selenium jar file as a background process: |
Attempt to use https://github.com/angular/webdriver-manager to run selenium... |
Check status of selenium server before running the tests: http://localhost:4444/wd/hub/status |
Selenium is Running! https://travis-ci.org/nelsonic/learn-nightwatch/builds/137849262 |
@nelsonic would a PR for this still be welcome? Think I might give it a go. |
I'm getting the error:
Seems like |
@amilajack I think the error relates to the latest version of |
@Danwhy & @SimonLab what are you doing differently to run your Nightwatch tests on Travis-CI ? |
It could be because we're running ours through saucelabs |
@Danwhy next time we're in the same room please walk me through it so I understand. thanks! 😉 |
For whatever it's worth, I seem to have gotten my project to work with Nightwatch tests on Travis using this guide, but I had to settle with only using phantomjs: Autodesk/molecule-2d-for-react#15 |
@justinmc nice work! thanks for confirming you got it working with PhantomJS! 👍 |
@jackcarlisle this is how I log progress in a "Spike"... it lets someone else see what has been attempted and can pick up the baton... |
@nelsonic 👍 I'll do the same for the karma spike |
Hello guys, I've been able to make it work with Chrome in Travis: https://github.com/abecms/abecms/blob/master/.travis.yml
The nightwatch config file is here:https://github.com/AdFabConnect/abejs/blob/master/nightwatch.conf.js Hope it will work for you ;) |
Since this issue was made this short piece has been added to the readme. |
@gregorybesson |
@qacwnfq U welcome. Indeed, we must start xvfb for chrome to be able to launch |
@nelsonic Tests running on Travis with saucelabs Here is the full code ritz078/embed-js#228 |
@ritz078 nice one. 👍 |
I will create a PR. |
@ritz078 thank you for your fantastic contribution! 👍 |
This should allow us to do integration testing on PRs from forks. See: - https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI - dwyl/learn-nightwatch#8
This should allow us to do integration testing on PRs from forks. See: - https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI - dwyl/learn-nightwatch#8
I just read this full issue that looked like a story ... and that was a super funny one! Nice job! |
Given that we have the selenium start/shutdown and test run in a single command
npm run e2e
,we could try to run this on Travis...
The text was updated successfully, but these errors were encountered: