voxel / voxelmetaverse

playing with voxel.js
http://voxel.github.io/voxelmetaverse/
MIT License
83 stars 28 forks source link

Basic automated smoke tests #68

Open deathcap opened 8 years ago

deathcap commented 8 years ago

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 commented 8 years ago

something like https://docs.travis-ci.com/user/languages/javascript-with-nodejs ?

deathcap commented 8 years ago

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 commented 8 years ago

How about https://docs.travis-ci.com/user/gui-and-headless-browsers/ ?

deathcap commented 8 years ago

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

z3t0 commented 8 years ago

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

deathcap commented 8 years ago

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