-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Chrome not captured when running tests on Travis #1144
Comments
@manleyjster AFAIK Travis-CI VMs don't have Chrome installed, by default only FFox is present. You could use this one but in this case you need to add
to your TravisCI install as explained here: http://docs.travis-ci.com/user/gui-and-headless-browsers/ Closing as this is an issue with what TravisCI provides and not a bug in Karma. If you want to test on multiple browsers you could use services like SaucLabs or similar. |
Thanks for responding - and thanks for the link to the GUI & Headless Browsers article - I hadn't seen that! I take your point, but I still think it's possible that Karma is implicated in this issue. If you look through my original issue report, you'll see that I was aware that Chrome is not installed by default on Travis CI and had added the following to my
At your suggestion (from above), I added:
to my Evidently it's more complicated than simply needing to start up the virtual X frame buffer. |
@manleyjster I'm just going over various issues on Travis-CI and people are reporting various things about being able to install & start chrome in the Travis VM. Did you try to verify that chrome actually starts properly after you install it? I still believe that the issue you are facing is due to the chrome not being installed properly and I'm pretty positive that this is not Karma problem. But yes, could you try to add a command to your Travis-CI sript that would open chrome? |
👍 same problem here. |
@henvic could you elaborate? Did you try to verify that Chrome is properly installed on Travis-CI and operational? From what I can see on various info on the net installing Chrome on Travis requires some mad science, ex.: https://twitter.com/domenic/status/502571560944021506 For now it still sounds like Chrome install problem on Travis but I don't have free cycles left to investigate it further. Although I would be interested in the solution :-) |
I did not got Google Chrome running on Travis-CI either. It installs but we are not sure if it starts up. I happened to got it running on using the Chromium pre-installed in the Travis-CI VM though, by setting https://github.com/MrOrz/SeeSS/blob/master/.travis.yml Build log: https://travis-ci.org/MrOrz/SeeSS/builds/33732670 |
Thanks, MrOrz! |
Using suggestions from here: karma-runner/karma#1144 This is currently using chromium, which probably does not have NaCl. I'll likely need to download a prebuilt binary from the Chrome waterfall.
👍 @MrOrz |
Not an issue with karma, so closing. |
@MrOrz Thanks! The no-sandbox flag was missing. :-) |
References: karma-runner/karma#1144 https://github.com/MrOrz/SeeSS/blob/master/.travis.yml https://github.com/MrOrz/SeeSS/blob/master/test/karma.conf.js travis-ci/travis-ci#9024 Signed-off-by: Sascha Scherrer <[email protected]>
Karma tests are failing on Travis when it tries to run tests in Chrome.
Since I posted this issue on the travis-ci issues page, I've noticed that the tests run successfully in PhantomJS, so I'm wondering if this error may be traced back to Karma.
The error message is:
Detailed issue report here: travis-ci/travis-ci#2555
The text was updated successfully, but these errors were encountered: