I found a library three-musketeers, a e2e testing library for three.js, and wanted to find something similar in Babylonjs. I was looking a lot to find something similar, but couldn’t find anything similar.
Alternitavely, it would be nice if there is a way to get the engine/scene from the global scope (it seems that BABYLON.Engine.LastCreatedScene doesn’t return the same scene as I created)
Spector is a tool aim to WebGl developers willing to know what happens on their context. It enables capturing all the available information from a frame. You will be empowered to look at your entire commands list with their associated visual states and context information.
You will be able to Explore and Troubleshoot your WebGL and WebGL2 scenes easily. This is compatible with any WebGL capable browser and all the web based 3d engines as well as vanilla scripts.
Thanks for the quick reply. Spector looks nice indeed and already had a look on it. It seems to do a pretty good job in debugging in a non automated fashion. Saying that I cannot run e2e tests with e.g. puppeteer/selenium/etc. (at least not on a leven where it makes sense).
The goal is to have one automated test to achieve something like following (copied from the docs of three-musketeers):
Brilliant idea @carolhmj . I think I was not looking into this folder as I did not connect “validation” with e2e testing.
@sebavan yes that was the idea, I was just not sure how to get the right “scene” from the global scope, but I think I just need to check out the link @carolhmj has added.