Aeva / m.grl

Midnight Graphics & Recreation Library
http://mgrl.midnightsisters.org
GNU Lesser General Public License v3.0
44 stars 3 forks source link

integration tests w/ expected rendering output #248

Open Aeva opened 7 years ago

Aeva commented 7 years ago

For a while, I've been using the demos both to show off, but also as integration tests. In some ways these are contradictory goals. For example, issue #244 is tricky because the scope of the demo is relatively high, and makes for a bad integration test for just, say, multi target rendering.

For this ticket, I'd like to expand the existing test framework (or entirely rewriting it if needed) so as to provide tools to make it easy to do assertions on webgl output itself. The main thing that would have to be different, is that the test should not run all in the same webgl context. One possibility is to run them in iframes instead. This kind of isolation would be good to have in general.

Some basic goals for this test: