Skip to content
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

Basic automated smoke tests #68

Open
deathcap opened this issue Dec 31, 2015 · 6 comments
Open

Basic automated smoke tests #68

deathcap opened this issue Dec 31, 2015 · 6 comments

Comments

@deathcap
Copy link
Member

Perform a simple automated "smoke test" periodically, to ensure the project can be built and runs.

Ideally this test would run periodically even with no project code changes, since there are external dependencies which could break it, e.g., recently:

@z3t0
Copy link
Contributor

z3t0 commented Dec 31, 2015

@deathcap
Copy link
Member Author

Sort of, but I'd want to test in each web browser. More like https://ci.testling.com/ but it says "Testling is currently not working" at the moment

@z3t0
Copy link
Contributor

z3t0 commented Dec 31, 2015

@deathcap
Copy link
Member Author

Thanks! https://docs.travis-ci.com/user/gui-and-headless-browsers/ looks to be just what I need.

  • xvfb + "If you need a browser, Firefox is installed on all Travis CI environments." - only one browser, but it's preinstalled
  • PhantomJS "headless WebKit with JavaScript API" - headless, but includes WebKit API
  • Sauce Labs https://saucelabs.com/opensauce/ - free for open source projects, "170 different device/OS/browser combinations". Will sign up for an OSS account

@z3t0
Copy link
Contributor

z3t0 commented Dec 31, 2015

Awesome, I'd help but I'm not too familiar with travis (besides simpler implementations)

@deathcap
Copy link
Member Author

Testing with Sauce Labs, OSS account voxelmetaverse, manual session:

Google Chrome dev on Windows 10 - no WebGL in their VMs? fails with "You need WebGL and Pointer Lock"
Google Chrome dev on Linux - same results
Google Chrome dev on OS X El Capitan - same results
Google Chrome 47 on OS X El Capitan - same results
Firefox dev on Linux - same results

0002screenshot

https://twitter.com/saucelabs/status/418861018400313344 confirms lack of WebGL support is a known limitation of Sauce Labs:

@greweb @saucelabs any chance to have WebGL running in SauceLabs? doesn't seem to work https://saucelabs.com/tests/a064a932a9344fca8286e07fa246575e
@saucelabs @greweb we've added it as a feature request. stay tuned!

this was from January 2nd, 2014, seems its still not supported :/

Next up, see if Travis CI's installation of Firefox in a virtual X framebuffer (xvfb) can support WebGL

edit: looks like Chromium's with --use-gl=osmesa can run WebGL headless: http://stackoverflow.com/questions/13763325/is-there-a-way-to-run-unit-test-for-a-webgl-webapp-in-a-headless-browser

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants