Is there a way to run unit test for a WebGL webapp

2019-03-18 08:07发布

问题:

Is there a way to run unit test for a WebGL (GLGE) webapp in a headless browser?

I'd like to run the tests on a jenkins server, so the tests must run on a headless (phantom.js) brower.

Anybody already tried that?

Cheers

回答1:

The Chromium project runs automated webgl and other gpu tests on normal machines that are unattended but they have a shared monitor and are vnc connected so we can remotely service them.

You can also run Chromium with osmesa. See https://stackoverflow.com/a/39060739/128511