Automatic testing

Hello

I would like to know if you have some solutions for Automatic testing on a babylon.js project ?

Today, we have classic web sites, with unit tests and web UI test using Selenium. And all non regressions tests are automated.

I am interested to replace a part of the application using 3D, and I would like to know if you have already some alternative for automatic testing for the UI part. (I know I can keep unit tests without UI…)

Thanks for advance
Jean-Pierre

1 Like

Hey!

we are using that script for babylonjs build: Babylon.js/validation.js at master · BabylonJS/Babylon.js · GitHub

It is triggered by our CI build every time someone push a PR

1 Like

Et bonjour,

Thanks you for your answer. The work your did on this project is really amazing !!! Bravo !!!
If I understood well the script, the heart of the validation is screen capture comparison ?

Do you have an idea to simulate :

  • Camera move
  • Click on clickable objects

Regards,
Jean-Pierre

Hi @sybaris,

Regarding unit tests you can write them using NullEngine from babylonjs using any unit test framework you like.
Same goes with auto tests.

1 Like

We have method to simulate pointers : https://playground.babylonjs.com/#1GLEJK#5

We actually use this pg during our validations.

1 Like

Hi everybody,

Thanks for your answer, and also thanks for you responsiveness. All your answers are very interesting.
I kept them in mind, and as soon as I will start my test Framework, I will try to integrate them…

Regards,
Jean-Pierre