Unit testing in Cesium

240 views
Skip to first unread message

H. Balázs

unread,
Jun 24, 2019, 7:08:58 AM6/24/19
to cesium-dev
Hello!

I'd like to write unit test to my cesium application. I tried to set up with Jest and Jasmine but both framework throw error: 

ReferenceError: Cesium is not defined

Can someone point me to the right direction? How do you write unit tests in Cesium?

Thanks!

Omar Shehata

unread,
Jun 28, 2019, 4:31:37 PM6/28/19
to cesium-dev
How are you importing Cesium? You should be able to include it as an npm module. A good example of this is in the gltf-pipeline repository:


For example, here's a unit test that uses Cesium:

Reply all
Reply to author
Forward
0 new messages